Blender V5.3
blender::bke::bNodeTreeType Struct Reference

#include <BKE_node.hh>

Public Attributes

eNodeTree_Type type = {}
UString idname
UString group_idname
std::string ui_name
std::string ui_description
int ui_icon = 0
std::optional< std::string > asset_catalog_path_prefix
void(*) foreach_nodeclass (void *calldata, bNodeClassCallback func) = nullptr
bool(*) poll (const bContext *C, bNodeTreeType *ntreetype) = nullptr
void(*) get_from_context (const bContext *C, bNodeTreeType *ntreetype, bNodeTree **r_ntree, ID **r_id, ID **r_from) = nullptr
void(*) localize (bNodeTree *localtree, bNodeTree *ntree) = nullptr
void(*) update (bNodeTree *ntree) = nullptr
bool(*) validate_link (eNodeSocketDatatype from, eNodeSocketDatatype to) = nullptr
bool(*) valid_socket_type (bNodeTreeType *ntreetype, bNodeSocketType *socket_type) = nullptr
uint8_t no_group_interface = 0
ExtensionRNA rna_ext = {}

Detailed Description

Definition at line 525 of file BKE_node.hh.

Member Data Documentation

◆ asset_catalog_path_prefix

std::optional<std::string> blender::bke::bNodeTreeType::asset_catalog_path_prefix

When set, menus will ignore this path prefix to determine where assets and catalogs are placed in the hierarchy. For example, setting this to "My Nodes" means a "My Nodes/Utils" catalog path will be treated as if it was just "Utils". This way the catalog hierarchy can still have some high level categorization, without affecting menus.

Note that multiple path segments can be defined to skip multiple parents, for example "Nodes/Geometry Nodes" to treat assets and catalogs under "Nodes/Geometry Nodes" as root level.

Definition at line 546 of file BKE_node.hh.

Referenced by blender::build_catalog_tree(), blender::ed::object::build_catalog_tree(), blender::ed::space_node::build_catalog_tree(), blender::ed::vse::build_catalog_tree(), blender::register_node_tree_type_cmp(), blender::register_node_tree_type_geo(), and blender::register_node_tree_type_sh().

◆ foreach_nodeclass

◆ get_from_context

void(*) blender::bke::bNodeTreeType::get_from_context(const bContext *C, bNodeTreeType *ntreetype, bNodeTree **r_ntree, ID **r_id, ID **r_from) = nullptr

◆ group_idname

◆ idname

◆ localize

void(*) blender::bke::bNodeTreeType::localize(bNodeTree *localtree, bNodeTree *ntree) = nullptr

◆ no_group_interface

uint8_t blender::bke::bNodeTreeType::no_group_interface = 0

If true, then some UI elements related to building node groups will be hidden. This can be used by Python-defined custom node tree types.

This is a uint8_t instead of bool to avoid compiler warnings in generated RNA code.

Definition at line 577 of file BKE_node.hh.

Referenced by blender::ed::space_node::node_tree_interface_panel_poll().

◆ poll

bool(*) blender::bke::bNodeTreeType::poll(const bContext *C, bNodeTreeType *ntreetype) = nullptr

◆ rna_ext

◆ type

◆ ui_description

std::string blender::bke::bNodeTreeType::ui_description

◆ ui_icon

◆ ui_name

◆ update

◆ valid_socket_type

◆ validate_link

bool(*) blender::bke::bNodeTreeType::validate_link(eNodeSocketDatatype from, eNodeSocketDatatype to) = nullptr

Definition at line 566 of file BKE_node.hh.

Referenced by blender::nodes::evaluate_closure_node_internally_linked_input(), blender::nodes::node_composite_filter_cc::gather_link_searches(), blender::nodes::node_composite_glare_cc::gather_link_searches(), blender::ed::space_node::gather_socket_link_operations(), blender::nodes::inline_shader_node_tree(), blender::ed::space_node::node_can_be_inserted_on_link(), blender::nodes::node_fn_set_string_case_cc::node_gather_link_search_ops(), blender::nodes::node_geo_bone_info_cc::node_gather_link_search_ops(), blender::nodes::node_geo_closure_to_list_cc::node_gather_link_search_ops(), blender::nodes::node_geo_field_to_list_cc::node_gather_link_search_ops(), blender::nodes::node_geo_grid_advect_cc::node_gather_link_search_ops(), blender::nodes::node_geo_grid_deactivate_voxels::node_gather_link_search_ops(), blender::nodes::node_geo_grid_dilate_erode_cc::node_gather_link_search_ops(), blender::nodes::node_geo_grid_info_cc::node_gather_link_search_ops(), blender::nodes::node_geo_grid_to_points_cc::node_gather_link_search_ops(), blender::nodes::node_geo_sample_grid_cc::node_gather_link_search_ops(), blender::nodes::node_geo_sample_grid_index_cc::node_gather_link_search_ops(), blender::nodes::node_geo_set_grid_transform::node_gather_link_search_ops(), blender::nodes::node_fn_bit_math_cc::node_gather_link_searches(), blender::nodes::node_fn_boolean_math_cc::node_gather_link_searches(), blender::nodes::node_fn_compare_cc::node_gather_link_searches(), blender::nodes::node_fn_integer_math_cc::node_gather_link_searches(), blender::nodes::node_fn_match_string_cc::node_gather_link_searches(), blender::nodes::node_fn_string_to_value_cc::node_gather_link_searches(), blender::nodes::node_fn_value_to_string_cc::node_gather_link_searches(), blender::nodes::node_geo_curve_primitive_quadrilateral_cc::node_gather_link_searches(), blender::nodes::node_geo_curve_trim_cc::node_gather_link_searches(), blender::nodes::node_geo_filter_list_cc::node_gather_link_searches(), blender::nodes::node_geo_index_switch_cc::node_gather_link_searches(), blender::nodes::node_geo_input_named_attribute_cc::node_gather_link_searches(), blender::nodes::node_geo_list_get_item_cc::node_gather_link_searches(), blender::nodes::node_geo_list_length_cc::node_gather_link_searches(), blender::nodes::node_geo_mesh_primitive_line_cc::node_gather_link_searches(), blender::nodes::node_geo_sort_list_cc::node_gather_link_searches(), blender::nodes::node_shader_tex_sky_cc::node_gather_link_searches(), blender::ed::space_node::node_insert_on_link_flags(), blender::register_node_tree_type_cmp(), blender::register_node_tree_type_geo(), blender::register_node_tree_type_sh(), blender::ed::space_node::search_link_ops_for_asset_metadata(), blender::nodes::node_shader_math_cc::sh_node_math_gather_link_searches(), blender::nodes::node_shader_vector_math_cc::sh_node_vector_math_gather_link_searches(), blender::nodes::sync_sockets_closure(), and blender::nodes::use_link_for_tracing().


The documentation for this struct was generated from the following file: