52 {0,
nullptr, 0,
nullptr,
nullptr}};
55 {
SOCK_FLOAT,
"FLOAT", ICON_NODE_SOCKET_FLOAT,
"Float",
""},
56 {
SOCK_INT,
"INT", ICON_NODE_SOCKET_INT,
"Integer",
""},
57 {
SOCK_BOOLEAN,
"BOOLEAN", ICON_NODE_SOCKET_BOOLEAN,
"Boolean",
""},
58 {
SOCK_VECTOR,
"VECTOR", ICON_NODE_SOCKET_VECTOR,
"Vector",
""},
59 {
SOCK_RGBA,
"RGBA", ICON_NODE_SOCKET_RGBA,
"Color",
""},
60 {
SOCK_ROTATION,
"ROTATION", ICON_NODE_SOCKET_ROTATION,
"Rotation",
""},
61 {
SOCK_MATRIX,
"MATRIX", ICON_NODE_SOCKET_MATRIX,
"Matrix",
""},
62 {
SOCK_STRING,
"STRING", ICON_NODE_SOCKET_STRING,
"String",
""},
63 {
SOCK_MENU,
"MENU", ICON_NODE_SOCKET_MENU,
"Menu",
""},
64 {
SOCK_SHADER,
"SHADER", ICON_NODE_SOCKET_SHADER,
"Shader",
""},
65 {
SOCK_OBJECT,
"OBJECT", ICON_NODE_SOCKET_OBJECT,
"Object",
""},
66 {
SOCK_IMAGE,
"IMAGE", ICON_NODE_SOCKET_IMAGE,
"Image",
""},
67 {
SOCK_GEOMETRY,
"GEOMETRY", ICON_NODE_SOCKET_GEOMETRY,
"Geometry",
""},
68 {
SOCK_COLLECTION,
"COLLECTION", ICON_NODE_SOCKET_COLLECTION,
"Collection",
""},
69 {
SOCK_TEXTURE,
"TEXTURE", ICON_NODE_SOCKET_TEXTURE,
"Texture",
""},
70 {
SOCK_MATERIAL,
"MATERIAL", ICON_NODE_SOCKET_MATERIAL,
"Material",
""},
71 {
SOCK_BUNDLE,
"BUNDLE", ICON_NODE_SOCKET_BUNDLE,
"Bundle",
""},
72 {
SOCK_CLOSURE,
"CLOSURE", ICON_NODE_SOCKET_CLOSURE,
"Closure",
""},
73 {
SOCK_FONT,
"FONT", ICON_NODE_SOCKET_FONT,
"Font",
""},
74 {
SOCK_SCENE,
"SCENE", ICON_NODE_SOCKET_SCENE,
"Scene",
""},
75 {
SOCK_TEXT_ID,
"TEXT", ICON_NODE_SOCKET_TEXT,
"Text",
""},
76 {
SOCK_MASK,
"MASK", ICON_NODE_SOCKET_MASK,
"Mask",
""},
77 {
SOCK_SOUND,
"SOUND", ICON_NODE_SOCKET_SOUND,
"Sound",
""},
78 {
SOCK_INT_VECTOR,
"INT_VECTOR", ICON_NODE_SOCKET_INT_VECTOR,
"Integer Vector",
""},
79 {0,
nullptr, 0,
nullptr,
nullptr},
87 "Default color tag for new nodes and node groups"},
104 {0,
nullptr, 0,
nullptr,
nullptr},
113 "Transform a texture by inverse mapping the texture coordinate"},
118 "Transform a direction vector (Location is ignored)"},
123 "Transform a unit normal vector (Location is ignored)"},
124 {0,
nullptr, 0,
nullptr,
nullptr},
132 "Rotate a point using axis angle"},
137 {0,
nullptr, 0,
nullptr,
nullptr},
151 {
NODE_MATH_INV_SQRT,
"INVERSE_SQRT", 0,
"Inverse Square Root",
"1 / Square root of A"},
160 {
NODE_MATH_COMPARE,
"COMPARE", 0,
"Compare",
"1 if (A == B) within tolerance C else 0"},
165 "The minimum from A and B with smoothing C"},
170 "The maximum from A and B with smoothing C"},
176 "Round A to the nearest integer. Round upward if the fraction part is 0.5"},
177 {
NODE_MATH_FLOOR,
"FLOOR", 0,
"Floor",
"The largest integer smaller than or equal A"},
178 {
NODE_MATH_CEIL,
"CEIL", 0,
"Ceil",
"The smallest integer greater than or equal A"},
179 {
NODE_MATH_TRUNC,
"TRUNC", 0,
"Truncate",
"The integer part of A, removing fractional digits"},
186 "The remainder of truncated division using fmod(A,B)"},
191 "The remainder of floored division"},
192 {
NODE_MATH_WRAP,
"WRAP", 0,
"Wrap",
"Wrap value to range, wrap(A,B)"},
193 {
NODE_MATH_SNAP,
"SNAP", 0,
"Snap",
"Snap to increment, snap(A,B)"},
198 "Wraps a value and reverses every other cycle (A,B)"},
213 {
NODE_MATH_RADIANS,
"RADIANS", 0,
"To Radians",
"Convert from degrees to radians"},
214 {
NODE_MATH_DEGREES,
"DEGREES", 0,
"To Degrees",
"Convert from radians to degrees"},
215 {0,
nullptr, 0,
nullptr,
nullptr},
231 "Reflect A around the normal B. B does not need to be normalized."},
236 "For a given incident vector A, surface normal B and ratio of indices of refraction, Ior, "
237 "refract returns the refraction vector, R"},
242 "Orients a vector A to point away from a surface B as defined by its normal C. "
243 "Returns (dot(B, C) < 0) ? A : -A"},
260 "Entry-wise round to the nearest integer. Round upward if the fraction part is 0.5"},
270 "Round A to the largest integer multiple of B less than or equal A"},
275 {0,
nullptr, 0,
nullptr,
nullptr},
289 "True when both inputs are equal (exclusive nor)"},
294 "True when both inputs are different (exclusive or)"},
300 "True unless the first input is true and the second is false"},
305 "True when the first input is true and the second is false (not imply)"},
306 {0,
nullptr, 0,
nullptr,
nullptr},
325 "The minimum value from A and B, min(A,B)"},
330 "The maximum value from A and B, max(A,B)"},
337 "Divide and round result toward zero"},
342 "Divide and floor to the largest integer smaller than or equal to the result"},
347 "Divide and ceil to the smallest integer greater than or equal to the result"},
353 "Modulo that is periodic for both negative and positive operands"},
359 "Greatest Common Divisor",
360 "The largest positive integer that divides into each of the values A and B, "
361 "e.g. GCD(8,12) = 4"},
365 "Least Common Multiple",
366 "The smallest positive integer that is divisible by both A and B, e.g. LCM(6,10) = 30"},
367 {0,
nullptr, 0,
nullptr,
nullptr},
375 "True when the first input is smaller than second input"},
379 "Less Than or Equal",
380 "True when the first input is smaller than the second input or equal"},
385 "True when the first input is greater than the second input"},
389 "Greater Than or Equal",
390 "True when the first input is greater than the second input or equal"},
391 {
NODE_COMPARE_EQUAL,
"EQUAL", 0,
"Equal",
"True when both inputs are approximately equal"},
396 "True when both inputs are not approximately equal"},
401 "True when the first input is brighter"},
403 {0,
nullptr, 0,
nullptr,
nullptr},
411 "Round the float up or down to the nearest integer"},
416 "Round the float down to the next smallest integer"},
421 "Round the float up to the next largest integer"},
426 "Round the float to the closest integer in the direction of zero (floor if positive; ceiling "
428 {0,
nullptr, 0,
nullptr,
nullptr},
436 "Linear interpolation between From Min and From Max values"},
441 "Stepped linear interpolation between From Min and From Max values"},
446 "Smooth Hermite edge interpolation between From Min and From Max values"},
451 "Smoother Hermite edge interpolation between From Min and From Max values"},
452 {0,
nullptr, 0,
nullptr,
nullptr},
456 {
NODE_CLAMP_MINMAX,
"MINMAX", 0,
"Min Max",
"Constrain value between min and max"},
461 "Constrain value between min and max, swapping arguments when min > max"},
462 {0,
nullptr, 0,
nullptr,
nullptr},
466 {1,
"1D", 0,
"1D",
"Use the scalar value W as input"},
467 {2,
"2D", 0,
"2D",
"Use the 2D vector (X, Y) as input. The Z component is ignored."},
468 {3,
"3D", 0,
"3D",
"Use the 3D vector (X, Y, Z) as input"},
469 {4,
"4D", 0,
"4D",
"Use the 4D vector (X, Y, Z, W) as input"},
470 {0,
nullptr, 0,
nullptr,
nullptr},
478 "The handle can be moved anywhere, and does not influence the point's other handle"},
483 "The location is automatically calculated to be smooth"},
488 "The location is calculated to point to the next/previous control point"},
493 "The location is constrained to point in the opposite direction as the other handle"},
494 {0,
nullptr, 0,
nullptr,
nullptr}};
499 {0,
nullptr, 0,
nullptr,
nullptr}};
506 "Use RGB (Red, Green, Blue) color processing"},
511 "Use HSV (Hue, Saturation, Value) color processing"},
516 "Use HSL (Hue, Saturation, Lightness) color processing"},
517 {0,
nullptr, 0,
nullptr,
nullptr},
521 {
SOCK_FLOAT,
"FLOAT", ICON_NODE_SOCKET_FLOAT,
"Float",
""},
522 {
SOCK_VECTOR,
"VECTOR", ICON_NODE_SOCKET_VECTOR,
"Vector",
""},
523 {
SOCK_RGBA,
"RGBA", ICON_NODE_SOCKET_RGBA,
"Color",
""},
524 {
SOCK_ROTATION,
"ROTATION", ICON_NODE_SOCKET_ROTATION,
"Rotation",
""},
525 {0,
nullptr, 0,
nullptr,
nullptr},
532 {0,
nullptr, 0,
nullptr,
nullptr},
541 {0,
nullptr, 0,
nullptr,
nullptr},
548 {0,
nullptr, 0,
nullptr,
nullptr},
556 N_(
"Areas outside of the image are filled with zero")},
561 N_(
"Areas outside of the image are filled with the closest boundary pixel in the image")},
566 N_(
"Areas outside of the image are filled with repetitions of the image")},
567 {0,
nullptr, 0,
nullptr,
nullptr},
576 N_(
"Use Bilinear interpolation")},
581 N_(
"Use Cubic B-Spline interpolation")},
586 N_(
"Use Anisotropic interpolation")},
587 {0,
nullptr, 0,
nullptr,
nullptr},
595 "Combine all layers which have the same name"},
600 "Provide a custom group ID for each layer and all layers with the same ID will be merged "
602 {0,
nullptr, 0,
nullptr,
nullptr},
610 "Set the color and opacity for the points of the stroke"},
615 "Set the color and opacity for the stroke fills"},
620 "Set the color and opacity for stroke points and fills together"},
621 {0,
nullptr, 0,
nullptr,
nullptr},
629 "The attribute is associated with the object geometry, and its value "
630 "varies from vertex to vertex, or within the object volume"},
635 "The attribute is associated with the object or mesh data-block itself, "
636 "and its value is uniform"},
641 "The attribute is associated with the instancer particle system or object, "
642 "falling back to the Object mode if the attribute isn't found, or the object "
648 "The attribute is associated with the View Layer, Scene or World that is being rendered"},
653 "The attribute is associated with the Light that is being rendered"},
654 {0,
nullptr, 0,
nullptr,
nullptr},
662 {0,
nullptr, 0,
nullptr,
nullptr},
672 "Use shaders for all renderers and viewports, unless there exists a more specific output"},
675 {0,
nullptr, 0,
nullptr,
nullptr},
679 {0,
"CryptoObject", 0,
"Object",
"Use Object layer"},
680 {1,
"CryptoMaterial", 0,
"Material",
"Use Material layer"},
681 {2,
"CryptoAsset", 0,
"Asset",
"Use Asset layer"},
682 {0,
nullptr, 0,
nullptr,
nullptr},
697# include <fmt/format.h>
793extern FunctionRNA *rna_NodeTree_get_from_context_func;
794extern FunctionRNA *rna_NodeTree_valid_socket_type_func;
813 if (nt->idname == idname) {
837 if (poll && !poll(
data, nt)) {
842 tmp.identifier = nt->idname.c_str();
843 tmp.icon = nt->ui_icon;
844 tmp.name = nt->ui_name.c_str();
845 tmp.description = nt->ui_description.c_str();
864 if (socket_type ==
nullptr) {
899 if (poll && !poll(
data, stype)) {
903 srna = stype->ext_socket.srna;
905 tmp.identifier = stype->idname.c_str();
924static const char *get_legacy_node_type(
const PointerRNA *ptr)
932 return "CUSTOM GROUP";
937 if (ntype->enum_name_legacy) {
938 return ntype->enum_name_legacy;
943static int rna_node_type_length(
PointerRNA *ptr)
945 const char *legacy_type = get_legacy_node_type(ptr);
947 return strlen(legacy_type);
950static void rna_node_type_get(
PointerRNA *ptr,
char *value)
952 const char *legacy_type = get_legacy_node_type(ptr);
954 strcpy(value, legacy_type);
957static void rna_Node_bl_idname_get(
PointerRNA *ptr,
char *value)
964static int rna_Node_bl_idname_length(
PointerRNA *ptr)
971static void rna_Node_bl_idname_set(
PointerRNA *ptr,
const char *value)
978static void rna_Node_bl_label_get(
PointerRNA *ptr,
char *value)
982 StringRef(ntype->ui_name).copy_unsafe(value);
985static int rna_Node_bl_label_length(
PointerRNA *ptr)
992static void rna_Node_bl_label_set(
PointerRNA *ptr,
const char *value)
999static void rna_Node_bl_description_get(
PointerRNA *ptr,
char *value)
1003 StringRef(ntype->ui_description).copy_unsafe(value);
1006static int rna_Node_bl_description_length(
PointerRNA *ptr)
1013static void rna_Node_bl_description_set(
PointerRNA *ptr,
const char *value)
1025static void rna_Node_location_get(
PointerRNA *ptr,
float *value)
1033 for (
bNode *child :
node.direct_children_in_frame()) {
1034 child->location[0] += delta.
x;
1035 child->location[1] += delta.
y;
1036 if (child->is_frame()) {
1037 move_child_nodes(*child, delta);
1042static void rna_Node_location_set(
PointerRNA *ptr,
const float *value)
1047 ntree->ensure_topology_cache();
1049 if (
node->is_frame()) {
1050 move_child_nodes(*
node, new_location -
float2(
node->location[0],
node->location[1]));
1052 node->location[0] = new_location.
x;
1053 node->location[1] = new_location.
y;
1062 if (ntree->typeinfo->rna_ext.srna) {
1063 return ntree->typeinfo->rna_ext.srna;
1066 return RNA_NodeTree;
1078 nullptr, ntreetype->rna_ext.srna,
nullptr);
1079 func = rna_NodeTree_poll_func;
1083 ntreetype->rna_ext.call(
const_cast<bContext *
>(
C), &ptr, func, &
list);
1086 visible = *
static_cast<bool *
>(
ret);
1093static void rna_NodeTree_update_reg(
bNodeTree *ntree)
1099 func = rna_NodeTree_update_func;
1102 ntree->typeinfo->rna_ext.call(
nullptr, &ptr, func, &
list);
1107static void rna_NodeTree_get_from_context(
1112 void *ret1, *ret2, *ret3;
1115 nullptr, ntreetype->rna_ext.srna,
nullptr);
1117 func = rna_NodeTree_get_from_context_func;
1121 ntreetype->rna_ext.call(
const_cast<bContext *
>(
C), &ptr, func, &
list);
1126 *r_ntree = *
static_cast<bNodeTree **
>(ret1);
1127 *r_id = *
static_cast<ID **
>(ret2);
1128 *r_from = *
static_cast<ID **
>(ret3);
1142 nullptr, ntreetype->rna_ext.srna,
nullptr);
1143 func = rna_NodeTree_valid_socket_type_func;
1147 ntreetype->rna_ext.call(
nullptr, &ptr, func, &
list);
1150 valid = *
static_cast<bool *
>(
ret);
1157static bool rna_NodeTree_unregister(
Main *bmain,
StructRNA *type)
1180 const char *identifier,
1187 bool have_function[4];
1191 dummy_ntree.typeinfo = &dummy_nt;
1195 if (validate(&dummy_ntree_ptr,
data, have_function) != 0) {
1199 if (strlen(identifier) >=
sizeof(dummy_ntree.idname)) {
1202 "Registering node tree class: '%s' is too long, maximum length is %d",
1204 int(
sizeof(dummy_ntree.idname)));
1213 "Registering node tree class: '%s', bl_idname '%s' has been registered before, "
1214 "unregistering previous",
1216 dummy_nt.idname.c_str());
1219 if (!rna_NodeTree_unregister(bmain, nt->rna_ext.srna)) {
1222 "Registering node tree class: '%s', bl_idname '%s' could not be unregistered",
1224 dummy_nt.idname.c_str());
1230 nt = MEM_new<bke::bNodeTreeType>(__func__, dummy_nt);
1235 nt->rna_ext.data =
data;
1236 nt->rna_ext.call = call;
1237 nt->rna_ext.free =
free;
1243 nt->poll = (have_function[0]) ? rna_NodeTree_poll :
nullptr;
1244 nt->update = (have_function[1]) ? rna_NodeTree_update_reg :
nullptr;
1245 nt->get_from_context = (have_function[2]) ? rna_NodeTree_get_from_context :
nullptr;
1246 nt->valid_socket_type = (have_function[3]) ? rna_NodeTree_valid_socket_type :
nullptr;
1253 return nt->rna_ext.srna;
1262 "Node tree '%s' has undefined type %s",
1285 rna_NodeTree_update(bmain, scene, ptr);
1350 if (!rna_NodeTree_check(ntree, reports)) {
1363 const char *disabled_hint =
nullptr;
1364 if (ntype->poll && !ntype->poll(ntype, ntree, &disabled_hint)) {
1365 if (disabled_hint) {
1368 "Cannot add node of type %s to node tree '%s'\n %s",
1377 "Cannot add node of type %s to node tree '%s'",
1379 ntree->id.name + 2);
1398static void rna_NodeTree_node_remove(
bNodeTree *ntree,
1405 if (!rna_NodeTree_check(ntree, reports)) {
1416 node_ptr->invalidate();
1426 if (!rna_NodeTree_check(ntree, reports)) {
1449static void rna_NodeTree_active_node_set(
PointerRNA *ptr,
1463 for (
bNode *other_node : ntree->all_nodes()) {
1464 if (other_node->type_legacy ==
node->type_legacy) {
1481 for (
bNode *other_node : ntree.all_nodes()) {
1482 if ((other_node->is_type(
"CompositorNodeViewer"_ustr) ||
1483 other_node->is_type(
"GeometryNodeViewer"_ustr)) &&
1484 other_node->custom1 == value)
1495 bNodeTree &ntree = curr_node->owner_tree();
1497 node_viewer_set_shortcut_fn(curr_node, ntree, value);
1503 bNodeTree &ntree = curr_node->owner_tree();
1505 node_viewer_set_shortcut_fn(curr_node, ntree, value);
1514 bool handle_dynamic_sockets)
1516 if (!rna_NodeTree_check(ntree, reports)) {
1525 if (!fromnode || !tonode) {
1529 if (fromsock->in_out == tosock->in_out) {
1534 if (fromsock->in_out ==
SOCK_IN) {
1535 std::swap(fromsock, tosock);
1536 std::swap(fromnode, tonode);
1539 if (handle_dynamic_sockets) {
1542 new_link.fromsock = fromsock;
1543 new_link.tonode = tonode;
1544 new_link.tosock = tosock;
1546 if (fromnode->typeinfo->insert_link) {
1548 if (!fromnode->typeinfo->insert_link(params)) {
1552 if (tonode->typeinfo->insert_link) {
1554 if (!tonode->typeinfo->insert_link(params)) {
1559 fromsock = new_link.fromsock;
1560 tosock = new_link.tosock;
1563 if (verify_limits) {
1574 for (
bNodeLink &link : ntree->links.items_mutable()) {
1575 if (link.fromsock == fromsock && link.tosock == tosock) {
1594static void rna_NodeTree_link_remove(
bNodeTree *ntree,
1601 if (!rna_NodeTree_check(ntree, reports)) {
1611 link_ptr->invalidate();
1621 if (!rna_NodeTree_check(ntree, reports)) {
1641static void rna_NodeTree_bl_idname_get(
PointerRNA *ptr,
char *value)
1648static int rna_NodeTree_bl_idname_length(
PointerRNA *ptr)
1655static void rna_NodeTree_bl_idname_set(
PointerRNA *ptr,
const char *value)
1662static void rna_NodeTree_bl_label_get(
PointerRNA *ptr,
char *value)
1666 StringRef(ntype->ui_name).copy_unsafe(value);
1669static int rna_NodeTree_bl_label_length(
PointerRNA *ptr)
1676static void rna_NodeTree_bl_label_set(
PointerRNA *ptr,
const char *value)
1683static void rna_NodeTree_bl_description_get(
PointerRNA *ptr,
char *value)
1687 StringRef(ntype->ui_description).copy_unsafe(value);
1690static int rna_NodeTree_bl_description_length(
PointerRNA *ptr)
1697static void rna_NodeTree_bl_description_set(
PointerRNA *ptr,
const char *value)
1704static void rna_NodeTree_debug_lazy_function_graph(
bNodeTree *tree,
1716 if (tree->runtime->geometry_nodes_lazy_function_graph_info_mutex.is_dirty()) {
1719 std::string dot_str = tree->runtime->geometry_nodes_lazy_function_graph_info->graph.to_dot();
1721 *r_len = dot_str.size();
1724static void rna_NodeTree_debug_zone_body_lazy_function_graph(
1735 if (tree->runtime->geometry_nodes_lazy_function_graph_info_mutex.is_dirty()) {
1739 ->debug_zone_body_graphs.lookup_default(
node->identifier,
nullptr);
1743 std::string dot_str = graph->to_dot();
1745 *r_len = dot_str.size();
1748static void rna_NodeTree_debug_zone_lazy_function_graph(
1770 std::optional<std::string> dot_str = tree->runtime->logged_zone_graphs->graph_by_zone_id.pop_try(
1776 *r_len = dot_str->size();
1782 ntree->tree_interface.tag_items_changed_generic();
1788static bool rna_NodeLink_is_hidden_get(
PointerRNA *ptr)
1794static void rna_NodeLink_swap_multi_input_sort_id(
1797 if (self->tosock != other->tosock) {
1802 std::swap(self->multi_input_sort_id, other->multi_input_sort_id);
1816 if (
node->typeinfo->rna_ext.srna) {
1817 return node->typeinfo->rna_ext.srna;
1824static std::optional<std::string> rna_Node_path(
const PointerRNA *ptr)
1827 char name_esc[
sizeof(
node->name) * 2];
1830 return fmt::format(
"nodes[\"{}\"]", name_esc);
1837 return std::nullopt;
1841 switch (
node->type_legacy) {
1844 if (&
data->iuser != ptr->data) {
1851 if (&
data->iuser != ptr->data) {
1860 char name_esc[
sizeof(
node->name) * 2];
1862 return fmt::format(
"nodes[\"{}\"].image_user", name_esc);
1865 return std::nullopt;
1878 func = rna_Node_poll_func;
1882 ntype->rna_ext.call(
nullptr, &ptr, func, &
list);
1885 visible = *
static_cast<bool *
>(
ret);
1892static bool rna_Node_poll_instance(
const bNode *
node,
1902 nullptr,
node->typeinfo->rna_ext.srna,
const_cast<bNode *
>(
node));
1903 func = rna_Node_poll_instance_func;
1907 node->typeinfo->rna_ext.call(
nullptr, &ptr, func, &
list);
1910 visible = *
static_cast<bool *
>(
ret);
1917static bool rna_Node_poll_instance_default(
const bNode *
node,
1919 const char **disabled_info)
1922 return rna_Node_poll(
node->typeinfo, ntree, disabled_info);
1931 reinterpret_cast<ID *
>(ntree),
node->typeinfo->rna_ext.srna,
node);
1932 func = rna_Node_update_func;
1935 node->typeinfo->rna_ext.call(
nullptr, &ptr, func, &
list);
1946 reinterpret_cast<ID *
>(¶ms.ntree), params.node.typeinfo->rna_ext.srna, ¶ms.node);
1947 func = rna_Node_insert_link_func;
1952 params.node.typeinfo->rna_ext.call(
nullptr, &ptr, func, &
list);
1964 func = rna_Node_init_func;
1978 func = rna_Node_copy_func;
1982 node->typeinfo->rna_ext.call(
nullptr, ptr, func, &
list);
1993 func = rna_Node_free_func;
1996 node->typeinfo->rna_ext.call(
nullptr, ptr, func, &
list);
2007 func = rna_Node_draw_buttons_func;
2013 node->typeinfo->rna_ext.call(
C, ptr, func, &
list);
2024 func = rna_Node_draw_buttons_ext_func;
2030 node->typeinfo->rna_ext.call(
C, ptr, func, &
list);
2035static void rna_Node_draw_label(
const bNodeTree *ntree,
2045 func = rna_Node_draw_label_func;
2048 const_cast<ID *
>(&ntree->id), RNA_Node,
const_cast<bNode *
>(
node));
2050 node->typeinfo->rna_ext.call(
nullptr, &ptr, func, &
list);
2053 rlabel =
static_cast<char *
>(
ret);
2054 BLI_strncpy(label, rlabel !=
nullptr ? rlabel :
"", label_maxncpy);
2059static bool rna_Node_is_registered_node_type(
StructRNA *type)
2070 return nt->rna_ext.data ==
nullptr;
2073static void rna_Node_is_registered_node_type_runtime(
bContext * ,
2082static bool rna_Node_unregister(
Main *bmain,
StructRNA *type)
2086 if (!nt || rna_Node_is_builtin(nt)) {
2110 const char *identifier,
2116 bNode dummy_node = {};
2119 bool have_function[10];
2126 dummy_node.typeinfo = &dummy_nt;
2130 if (validate(&dummy_node_ptr,
data, have_function) != 0) {
2134 if (strlen(identifier) >=
sizeof(dummy_node.idname)) {
2137 "Registering node class: '%s' is too long, maximum length is %d",
2139 int(
sizeof(dummy_node.idname)));
2147 if (rna_Node_is_builtin(nt)) {
2150 "Registering node class: '%s', bl_idname '%s' is a builtin node",
2152 dummy_nt.idname.c_str());
2158 "Registering node class: '%s', bl_idname '%s' has been registered before, "
2159 "unregistering previous",
2161 dummy_nt.idname.c_str());
2164 if (!rna_Node_unregister(bmain, nt->rna_ext.srna)) {
2167 "Registering node class: '%s', bl_idname '%s' could not be unregistered",
2169 dummy_nt.idname.c_str());
2175 nt = MEM_new<bke::bNodeType>(__func__, dummy_nt);
2179 nt->rna_ext.data =
data;
2180 nt->rna_ext.call = call;
2181 nt->rna_ext.free =
free;
2188 nt->rna_ext.srna,
"is_registered_node_type", rna_Node_is_registered_node_type_runtime);
2197 nt->poll = (have_function[0]) ? rna_Node_poll :
nullptr;
2198 nt->poll_instance = (have_function[1]) ? rna_Node_poll_instance : rna_Node_poll_instance_default;
2199 nt->updatefunc = (have_function[2]) ? rna_Node_update_reg :
nullptr;
2200 nt->insert_link = (have_function[3]) ? rna_Node_insert_link :
nullptr;
2201 nt->initfunc_api = (have_function[4]) ? rna_Node_init :
nullptr;
2202 nt->copyfunc_api = (have_function[5]) ? rna_Node_copy :
nullptr;
2203 nt->freefunc_api = (have_function[6]) ? rna_Node_free :
nullptr;
2204 nt->draw_buttons = (have_function[7]) ? rna_Node_draw_buttons :
nullptr;
2205 nt->draw_buttons_ex = (have_function[8]) ? rna_Node_draw_buttons_ext :
nullptr;
2206 nt->labelfunc = (have_function[9]) ? rna_Node_draw_label :
nullptr;
2209 if (nt->maxwidth < nt->minwidth) {
2210 nt->maxwidth = nt->minwidth;
2212 if (nt->maxheight < nt->minheight) {
2213 nt->maxheight = nt->minheight;
2215 CLAMP(nt->default_width, nt->minwidth, nt->maxwidth);
2216 CLAMP(nt->height, nt->minheight, nt->maxheight);
2224 const char *identifier,
2230 bmain, reports, RNA_Node,
data, identifier, validate, call,
free);
2240 return nt->rna_ext.srna;
2243static bool compositor_node_asset_trait_flag_get(
PointerRNA *ptr,
2247 if (!ntree->compositor_node_asset_traits) {
2252static bool rna_CompositorNodeTree_is_strip_modifier_get(
PointerRNA *ptr)
2256static void compositor_node_asset_trait_flag_set(
PointerRNA *ptr,
2261 if (!ntree->compositor_node_asset_traits) {
2262 ntree->compositor_node_asset_traits = MEM_new<CompositorNodeAssetTraits>(__func__);
2266static void rna_CompositorNodeTree_is_strip_modifier_set(
PointerRNA *ptr,
bool value)
2271static bool rna_CompositorNodeTree_allow_usage_in_scene_compositor_effect_get(
PointerRNA *ptr)
2276static void rna_CompositorNodeTree_allow_usage_in_scene_compositor_effect_set(
PointerRNA *ptr,
2290 if (value_supported(item)) {
2299static bool geometry_node_asset_trait_flag_get(
PointerRNA *ptr,
2303 if (!ntree->geometry_node_asset_traits) {
2309static void rna_GeometryNodeTree_node_tool_idname_get(
PointerRNA *ptr,
char *value)
2312 if (!ntree->geometry_node_asset_traits) {
2317 strcpy(value, idname ? idname :
"");
2320static int rna_GeometryNodeTree_node_tool_idname_length(
PointerRNA *ptr)
2323 if (!ntree->geometry_node_asset_traits) {
2327 return idname ? strlen(idname) : 0;
2330static void rna_GeometryNodeTree_node_tool_idname_set(
PointerRNA *ptr,
const char *value)
2333 if (!ntree->geometry_node_asset_traits) {
2334 ntree->geometry_node_asset_traits = MEM_new<GeometryNodeAssetTraits>(__func__);
2336 if (ntree->geometry_node_asset_traits->node_tool_idname) {
2337 MEM_delete(ntree->geometry_node_asset_traits->node_tool_idname);
2339 if (value && value[0]) {
2340 ntree->geometry_node_asset_traits->node_tool_idname =
BLI_strdup(value);
2343 ntree->geometry_node_asset_traits->node_tool_idname =
nullptr;
2347static void geometry_node_asset_trait_flag_set(
PointerRNA *ptr,
2352 if (!ntree->geometry_node_asset_traits) {
2353 ntree->geometry_node_asset_traits = MEM_new<GeometryNodeAssetTraits>(__func__);
2358static bool rna_GeometryNodeTree_is_tool_get(
PointerRNA *ptr)
2362static void rna_GeometryNodeTree_is_tool_set(
PointerRNA *ptr,
bool value)
2367static bool rna_GeometryNodeTree_is_modifier_get(
PointerRNA *ptr)
2371static void rna_GeometryNodeTree_is_modifier_set(
PointerRNA *ptr,
bool value)
2376static bool rna_GeometryNodeTree_is_mode_object_get(
PointerRNA *ptr)
2380static void rna_GeometryNodeTree_is_mode_object_set(
PointerRNA *ptr,
bool value)
2385static bool rna_GeometryNodeTree_is_mode_edit_get(
PointerRNA *ptr)
2389static void rna_GeometryNodeTree_is_mode_edit_set(
PointerRNA *ptr,
bool value)
2394static bool rna_GeometryNodeTree_is_mode_sculpt_get(
PointerRNA *ptr)
2398static void rna_GeometryNodeTree_is_mode_sculpt_set(
PointerRNA *ptr,
bool value)
2403static bool rna_GeometryNodeTree_is_mode_paint_get(
PointerRNA *ptr)
2407static void rna_GeometryNodeTree_is_mode_paint_set(
PointerRNA *ptr,
bool value)
2412static bool rna_GeometryNodeTree_is_type_mesh_get(
PointerRNA *ptr)
2416static void rna_GeometryNodeTree_is_type_mesh_set(
PointerRNA *ptr,
bool value)
2421static bool rna_GeometryNodeTree_is_type_curve_get(
PointerRNA *ptr)
2425static void rna_GeometryNodeTree_is_type_curve_set(
PointerRNA *ptr,
bool value)
2430static bool rna_GeometryNodeTree_is_type_pointcloud_get(
PointerRNA *ptr)
2434static void rna_GeometryNodeTree_is_type_pointcloud_set(
PointerRNA *ptr,
bool value)
2439static bool rna_GeometryNodeTree_use_wait_for_click_get(
PointerRNA *ptr)
2443static void rna_GeometryNodeTree_use_wait_for_click_set(
PointerRNA *ptr,
bool value)
2448static bool rna_GeometryNodeTree_is_type_grease_pencil_get(
PointerRNA *ptr)
2452static void rna_GeometryNodeTree_is_type_grease_pencil_set(
PointerRNA *ptr,
bool value)
2457static bool rna_GeometryNodeTree_modifier_manage_panel_get(
PointerRNA *ptr)
2461static void rna_GeometryNodeTree_modifier_manage_panel_set(
PointerRNA *ptr,
bool value)
2481 return ELEM(item->value,
2493static bool generic_attribute_type_supported_with_socket(
const EnumPropertyItem *item)
2499static const EnumPropertyItem *rna_GeometryNodeAttributeType_type_with_socket_itemf(
2504 generic_attribute_type_supported_with_socket);
2507static const EnumPropertyItem *rna_GeometryNodeAttributeDomain_attribute_domain_itemf(
2527 const char *identifier,
2533 bmain, reports, RNA_ShaderNode,
data, identifier, validate, call,
free);
2543 return nt->rna_ext.srna;
2549 const char *identifier,
2555 bmain, reports, RNA_CompositorNode,
data, identifier, validate, call,
free);
2565 return nt->rna_ext.srna;
2571 const char *identifier,
2577 bmain, reports, RNA_TextureNode,
data, identifier, validate, call,
free);
2587 return nt->rna_ext.srna;
2593 const char *identifier,
2599 bmain, reports, RNA_GeometryNode,
data, identifier, validate, call,
free);
2609 return nt->rna_ext.srna;
2615 const char *identifier,
2621 bmain, reports, RNA_FunctionNode,
data, identifier, validate, call,
free);
2631 return nt->rna_ext.srna;
2661 if (!parent->is_frame()) {
2670 if (parent_ntree != ntree) {
2683 node->runtime->internal_links.data(),
2685 node->runtime->internal_links.size(),
2706static bool allow_identifier_lookup(
const bNode &
node)
2708 switch (
node.type_legacy) {
2721 ListBaseT<bNodeSocket> *sockets = in_out ==
SOCK_IN ? &
node.inputs : &
node.outputs;
2722 if (allow_identifier_lookup(
node)) {
2724 if (socket.is_available()) {
2725 if (socket.identifier == key) {
2732 if (socket.is_available()) {
2733 if (socket.name == key) {
2764 bNode *parent =
static_cast<bNode *
>(value.data);
2769 if (!parent->is_frame()) {
2800static void rna_Node_select_set(
PointerRNA *ptr,
bool value)
2806static void rna_Node_mute_set(
PointerRNA *ptr,
bool value)
2809 if (!
node->typeinfo->no_muting) {
2814static void rna_Node_name_set(
PointerRNA *ptr,
const char *value)
2818 char oldname[
sizeof(
node->name)];
2836static int rna_Node_color_tag_get(
PointerRNA *ptr)
2842static bool allow_adding_sockets(
const bNode &
node)
2847static bool allow_changing_sockets(
bNode *
node)
2858 const char *identifier,
2859 const bool use_multi_input)
2861 if (!allow_adding_sockets(*
node)) {
2865 if (identifier ==
nullptr) {
2873 if (sock ==
nullptr) {
2877 if (use_multi_input) {
2893 const char *identifier,
2894 const bool use_multi_input)
2896 if (!allow_adding_sockets(*
node)) {
2901 if (use_multi_input) {
2906 if (identifier ==
nullptr) {
2914 if (sock ==
nullptr) {
2925static void rna_Node_socket_remove(
2928 if (!allow_changing_sockets(
node)) {
2948 if (!allow_changing_sockets(
node)) {
2956 for (sock =
node->inputs.first(); sock; sock = nextsock) {
2957 nextsock = sock->next;
2967 if (!allow_changing_sockets(
node)) {
2975 for (sock =
node->outputs.first(); sock; sock = nextsock) {
2976 nextsock = sock->next;
2984static void rna_Node_inputs_move(
2987 if (!allow_changing_sockets(
node)) {
2995 if (from_index == to_index) {
2998 if (from_index < 0 || to_index < 0) {
3003 if (to_index < from_index) {
3023static void rna_Node_outputs_move(
3026 if (!allow_changing_sockets(
node)) {
3034 if (from_index == to_index) {
3037 if (from_index < 0 || to_index < 0) {
3042 if (to_index < from_index) {
3062static void rna_Node_width_range(
3067 *
max = *softmax =
node->typeinfo->maxwidth;
3070static void rna_Node_height_range(
3075 *
max = *softmax =
node->typeinfo->maxheight;
3078static void rna_Node_dimensions_get(
PointerRNA *ptr,
float *value)
3082 value[0] = dimensions[0];
3083 value[1] = dimensions[1];
3088static void rna_NodeInternalSocketTemplate_name_get(
PointerRNA *ptr,
char *value)
3091 strcpy(value, stemp->name);
3094static int rna_NodeInternalSocketTemplate_name_length(
PointerRNA *ptr)
3097 return strlen(stemp->name);
3100static void rna_NodeInternalSocketTemplate_identifier_get(
PointerRNA *ptr,
char *value)
3103 strcpy(value, stemp->identifier);
3106static int rna_NodeInternalSocketTemplate_identifier_length(
PointerRNA *ptr)
3109 return strlen(stemp->identifier);
3112static int rna_NodeInternalSocketTemplate_type_get(
PointerRNA *ptr)
3121 if (ntype && ntype->inputs) {
3124 while (i < index && stemp->type >= 0) {
3128 if (i ==
index && stemp->type >= 0) {
3139 if (ntype && ntype->outputs) {
3142 while (i < index && stemp->type >= 0) {
3146 if (i ==
index && stemp->type >= 0) {
3157 const char *disabled_hint;
3158 return ntype && (!ntype->poll || ntype->poll(ntype, ntree, &disabled_hint));
3164 const char *disabled_hint;
3165 if (ntype->poll_instance) {
3166 return ntype->poll_instance(
node, ntree, &disabled_hint);
3170 return !ntype->poll || ntype->poll(ntype, ntree, &disabled_hint);
3183 if (
node->typeinfo->draw_buttons) {
3185 node->typeinfo->draw_buttons(*layout,
C, &ptr);
3191 if (
node->typeinfo->draw_buttons_ex) {
3193 node->typeinfo->draw_buttons_ex(*layout,
C, &ptr);
3195 else if (
node->typeinfo->draw_buttons) {
3197 node->typeinfo->draw_buttons(*layout,
C, &ptr);
3204 const char *identifier,
3210 bmain, reports, RNA_NodeCustomGroup,
data, identifier, validate, call,
free);
3220 return nt->rna_ext.srna;
3223static StructRNA *rna_GeometryNodeCustomGroup_register(
Main *bmain,
3226 const char *identifier,
3232 bmain, reports, RNA_GeometryNodeCustomGroup,
data, identifier, validate, call,
free);
3247 return nt->rna_ext.srna;
3252static StructRNA *rna_ShaderNodeCustomGroup_register(
Main *bmain,
3255 const char *identifier,
3261 bmain, reports, RNA_ShaderNodeCustomGroup,
data, identifier, validate, call,
free);
3276 return nt->rna_ext.srna;
3279static StructRNA *rna_CompositorNodeCustomGroup_register(
Main *bmain,
3282 const char *identifier,
3288 bmain, reports, RNA_CompositorNodeCustomGroup,
data, identifier, validate, call,
free);
3302 return nt->rna_ext.srna;
3326static void rna_NodeGroup_node_tree_set(
PointerRNA *ptr,
3334 const char *disabled_hint =
nullptr;
3343 node->id = &ngroup->id;
3353 if (ngroup->type != ntree->type) {
3357 const char *disabled_hint =
nullptr;
3370 node->
id =
static_cast<ID *
>(value.data);
3400 const auto rotation_supported_mix = [&](
const EnumPropertyItem *item) ->
bool {
3429 if (ima ==
nullptr || ima->rr ==
nullptr) {
3434 const auto &item_from_render_layer = [&](
const RenderLayer &rl,
3440 if (rl.name[0] ==
'\0') {
3456static bool rna_Node_image_has_layers_get(
PointerRNA *ptr)
3467 if (!ima || !(ima->rr)) {
3474static bool rna_Node_image_has_views_get(
PointerRNA *ptr)
3485 if (!ima || !(ima->rr)) {
3496 int i = 1, totitem = 0;
3502 tmp.identifier = rv->name;
3505 if (rv->name[0] ==
'\0') {
3509 tmp.name = rv->name;
3537 if (ima ==
nullptr || ima->rr ==
nullptr) {
3542 rv = ima->rr->views.first();
3543 item = renderresult_views_add_enum(rv);
3559 if (sce ==
nullptr) {
3564 const auto &item_from_view_layer = [&](
const ViewLayer &vl,
3570 if (vl.name[0] ==
'\0') {
3598static void rna_NodeColorBalance_input_whitepoint_get(
PointerRNA *ptr,
float value[3])
3609static void rna_NodeColorBalance_input_whitepoint_set(
PointerRNA *ptr,
const float value[3])
3620static void rna_NodeColorBalance_output_whitepoint_get(
PointerRNA *ptr,
float value[3])
3632static void rna_NodeColorBalance_output_whitepoint_set(
PointerRNA *ptr,
const float value[3])
3644static void rna_NodeCryptomatte_source_set(
PointerRNA *ptr,
int value)
3647 if (
node->id &&
node->custom1 != value) {
3654static int rna_NodeCryptomatte_layer_name_get(
PointerRNA *ptr)
3667static void rna_NodeCryptomatte_layer_name_set(
PointerRNA *ptr,
int new_value)
3690 for (
const auto [layer_index,
layer] :
storage->runtime.layers.enumerate()) {
3691 temp.value = layer_index;
3692 temp.identifier =
layer.name;
3693 temp.name =
layer.name;
3716 rna_Node_scene_set(ptr, value, reports);
3728static void rna_NodeCryptomatte_image_set(
PointerRNA *ptr,
3741 node->id =
static_cast<ID *
>(value.data);
3751static void rna_NodeCryptomatte_matte_get(
PointerRNA *ptr,
char *value)
3756 strcpy(value, matte_id);
3757 MEM_delete(matte_id);
3760static int rna_NodeCryptomatte_matte_length(
PointerRNA *ptr)
3765 int result = strlen(matte_id);
3766 MEM_delete(matte_id);
3770static void rna_NodeCryptomatte_matte_set(
PointerRNA *ptr,
const char *value)
3795 bNode *output_node = zone_type.get_corresponding_output(*ntree, *
node);
3800static bool rna_Node_pair_with_output(
3805 if (output_node->type_legacy != zone_type.output_type) {
3809 "Cannot pair zone input node %s with %s because it does not have the same zone type",
3814 for (
const bNode *other_input_node : ntree->nodes_by_type(zone_type.input_idname)) {
3815 if (other_input_node !=
node) {
3816 if (zone_type.get_corresponding_output(*ntree, *other_input_node) == output_node) {
3819 "The output node %s is already paired with %s",
3821 other_input_node->name);
3826 int &output_node_id = zone_type.get_corresponding_output_id(*
node);
3827 output_node_id = output_node->identifier;
3835template<
typename Accessor>
3836static void rna_Node_ItemArray_remove(
ID *
id,
3840 typename Accessor::ItemT *item_to_remove)
3843 if (item_to_remove < *ref.items || item_to_remove >= *ref.items + *ref.items_num) {
3844 if constexpr (Accessor::has_name) {
3845 char **name_ptr = Accessor::get_name(*item_to_remove);
3846 if (name_ptr && *name_ptr) {
3858 ref.items, ref.items_num, ref.active_index, remove_index, Accessor::destruct_item);
3866template<
typename Accessor>
static void rna_Node_ItemArray_clear(
ID *
id,
bNode *
node,
Main *bmain)
3869 dna::array::clear(ref.items, ref.items_num, ref.active_index, Accessor::destruct_item);
3877template<
typename Accessor>
3878static void rna_Node_ItemArray_move(
3879 ID *
id,
bNode *
node,
Main *bmain,
const int from_index,
const int to_index)
3882 const int items_num = *ref.items_num;
3883 if (from_index < 0 || to_index < 0 || from_index >= items_num || to_index >= items_num) {
3898 typename Accessor::ItemT *active_item =
nullptr;
3899 const int active_index = *ref.active_index;
3900 const int items_num = *ref.items_num;
3901 if (active_index >= 0 && active_index < items_num) {
3902 active_item = &(*ref.items)[active_index];
3906template<
typename Accessor>
3907static void rna_Node_ItemArray_active_set(
PointerRNA *ptr,
3911 using ItemT =
typename Accessor::ItemT;
3913 ItemT *item =
static_cast<ItemT *
>(value.data);
3916 if (item >= *ref.items && item < *ref.items + *ref.items_num) {
3917 *ref.active_index = item - *ref.items;
3921template<
typename Accessor>
3924 using ItemT =
typename Accessor::ItemT;
3926 ItemT &item = *
static_cast<ItemT *
>(ptr->data);
3934template<
typename Accessor>
3942 return itemf_function_check(
3948template<
typename Accessor>
3949static void rna_Node_ItemArray_item_name_set(
PointerRNA *ptr,
const char *value)
3951 using ItemT =
typename Accessor::ItemT;
3953 ItemT &item = *
static_cast<ItemT *
>(ptr->data);
3959template<
typename Accessors>
3960static void rna_Node_ItemArray_item_color_get(
PointerRNA *ptr,
float *values)
3962 using ItemT =
typename Accessors::ItemT;
3963 ItemT &item = *
static_cast<ItemT *
>(ptr->data);
3965 Accessors::get_socket_type(item), 0);
3969template<
typename Accessor>
3970typename Accessor::ItemT *rna_Node_ItemArray_new_with_socket_and_name(
3973 using ItemT =
typename Accessor::ItemT;
3990template<
typename Accessor>
3996 using ItemT =
typename Accessor::ItemT;
3999 const ItemT &item = *
static_cast<const ItemT *
>(ptr->data);
4005static const EnumPropertyItem *rna_GeometryNodeClosureToListItem_structure_type_itemf(
4016 const bool supports_fields = is_geometry_nodes &&
4020 const bool supports_lists =
false;
4024 int items_count = 0;
4038 if (supports_fields || supports_grids) {
4044 if (supports_fields) {
4050 if (supports_grids) {
4056 if (supports_lists) {
4114 return itemf_function_check(
4120static const EnumPropertyItem *rna_NodeGeometryCaptureAttributeItem_data_type_itemf(
4126 return ELEM(item->value,
4145static void rna_ShaderNodeTexIES_mode_set(
PointerRNA *ptr,
int value)
4150 if (nss->mode != value) {
4152 nss->filepath[0] =
'\0';
4159 STRNCPY(nss->filepath, text->filepath);
4170static void rna_ShaderNodeScript_mode_set(
PointerRNA *ptr,
int value)
4175 if (nss->mode != value) {
4177 nss->filepath[0] =
'\0';
4185 STRNCPY(nss->filepath, text->filepath);
4195 if (nss->bytecode) {
4196 MEM_delete(nss->bytecode);
4197 nss->bytecode =
nullptr;
4200 nss->bytecode_hash[0] =
'\0';
4204static void rna_ShaderNodeScript_bytecode_get(
PointerRNA *ptr,
char *value)
4209 strcpy(value, (nss->bytecode) ? nss->bytecode :
"");
4212static int rna_ShaderNodeScript_bytecode_length(
PointerRNA *ptr)
4217 return (nss->bytecode) ? strlen(nss->bytecode) : 0;
4220static void rna_ShaderNodeScript_bytecode_set(
PointerRNA *ptr,
const char *value)
4225 if (nss->bytecode) {
4226 MEM_delete(nss->bytecode);
4229 if (value && value[0]) {
4233 nss->bytecode =
nullptr;
4243 if (engine_type && engine_type->update_script_node) {
4246 engine_type->update_script_node(engine, ntree,
node);
4264static void rna_ShaderNode_is_active_output_set(
PointerRNA *ptr,
bool value)
4271 for (
bNode *other_node : ntree->all_nodes()) {
4272 if (other_node->type_legacy ==
node->type_legacy) {
4283static void rna_GroupOutput_is_active_output_set(
PointerRNA *ptr,
bool value)
4289 for (
bNode *other_node : ntree->all_nodes()) {
4290 if (other_node->is_group_output()) {
4301static int rna_NodeConvertColorSpace_from_color_space_get(
PointerRNA *ptr)
4308static void rna_NodeConvertColorSpace_from_color_space_set(
PointerRNA *ptr,
int value)
4314 if (name && name[0]) {
4316 node_storage->from_color_space, node_storage->from_interop_id, name);
4320static int rna_NodeConvertColorSpace_from_interop_id_get(
PointerRNA *ptr)
4325 node_storage->from_interop_id);
4328static void rna_NodeConvertColorSpace_from_interop_id_set(
PointerRNA *ptr,
int value)
4333 node_storage->from_color_space, node_storage->from_interop_id, value);
4336static int rna_NodeConvertColorSpace_to_color_space_get(
PointerRNA *ptr)
4343static void rna_NodeConvertColorSpace_to_color_space_set(
PointerRNA *ptr,
int value)
4349 if (name && name[0]) {
4351 node_storage->to_color_space, node_storage->to_interop_id, name);
4355static int rna_NodeConvertColorSpace_to_interop_id_get(
PointerRNA *ptr)
4360 node_storage->to_interop_id);
4363static void rna_NodeConvertColorSpace_to_interop_id_set(
PointerRNA *ptr,
int value)
4368 node_storage->to_color_space, node_storage->to_interop_id, value);
4371static void rna_reroute_node_socket_type_set(
PointerRNA *ptr,
const char *value)
4378 if (value ==
nullptr) {
4382 if (socket_type ==
nullptr) {
4385 if (socket_type->subtype !=
PROP_NONE) {
4388 if (ntree_type->valid_socket_type && !ntree_type->valid_socket_type(ntree_type, socket_type)) {
4395static void rna_implicit_conversion_node_socket_type_set(
PointerRNA *ptr,
const char *value)
4402 if (value ==
nullptr) {
4406 if (socket_type ==
nullptr) {
4409 if (socket_type->subtype !=
PROP_NONE) {
4412 if (ntree_type->valid_socket_type && !ntree_type->valid_socket_type(ntree_type, socket_type)) {
4475static int rna_NodeImplicitConversion_data_type_get(
PointerRNA *ptr)
4480 return socket_type ? socket_type->type :
SOCK_CUSTOM;
4483static void rna_NodeImplicitConversion_data_type_set(
PointerRNA *ptr,
const int value)
4489 STRNCPY(
data.type_idname, socket_type->idname.c_str());
4499 bNodeTree &ntree = *id_cast<bNodeTree *>(ptr->owner_id);
4500 return itemf_function_check(
4506 if (ntree.typeinfo->valid_socket_type &&
4507 !ntree.typeinfo->valid_socket_type(ntree.typeinfo, socket_type))
4515static int rna_MergeLayers_mode_get(
PointerRNA *ptr)
4522static void rna_MergeLayers_mode_set(
PointerRNA *ptr,
int value)
4529static int rna_SetGreasePencilColor_mode_get(
PointerRNA *ptr)
4536static void rna_SetGreasePencilColor_mode_set(
PointerRNA *ptr,
int value)
4543static int rna_SetGreasePencilDepth_depth_order_get(
PointerRNA *ptr)
4550static void rna_SetGreasePencilDepth_depth_order_set(
PointerRNA *ptr,
int value)
4557static void rna_NodeInputVector_vector_get(
PointerRNA *ptr,
float *values)
4561 memcpy(values,
storage.vector,
sizeof(
float) *
storage.dimensions);
4564static void rna_NodeInputVector_vector_set(
PointerRNA *ptr,
const float *values)
4568 memcpy(
storage.vector, values,
sizeof(
float) *
storage.dimensions);
4571static int rna_NodeInputVector_vector_get_array_length(
const PointerRNA *ptr,
4580static void rna_NodeInputIntVector_vector_get(
PointerRNA *ptr,
int *values)
4584 memcpy(values,
storage.vector,
sizeof(
int) *
storage.dimensions);
4587static void rna_NodeInputIntVector_vector_set(
PointerRNA *ptr,
const int *values)
4591 memcpy(
storage.vector, values,
sizeof(
int) *
storage.dimensions);
4594static int rna_NodeInputIntVector_vector_get_array_length(
const PointerRNA *ptr,
4615 if (!
data->enum_items) {
4624static const EnumPropertyItem *rna_NodeRaycastSampleAttributeItem_data_type_itemf(
4646 if (scene ==
nullptr || space_node ==
nullptr) {
4654 return itemf_function_check(
4672 if (scene ==
nullptr || space_node ==
nullptr) {
4680 return itemf_function_check(
4693 {0,
"PLACEHOLDER", 0,
"Placeholder",
""},
4694 {0,
nullptr, 0,
nullptr,
nullptr},
4698 {0,
"ALL", 0,
"All",
""},
4699 {0,
nullptr, 0,
nullptr,
nullptr},
4703 {0,
"PLACEHOLDER", 0,
"Placeholder",
""},
4704 {0,
nullptr, 0,
nullptr,
nullptr},
4708 {0,
"ITUBT601", 0,
"ITU 601",
""},
4709 {1,
"ITUBT709", 0,
"ITU 709",
""},
4710 {2,
"JFIF", 0,
"JPEG",
""},
4711 {0,
nullptr, 0,
nullptr,
nullptr},
4721 "GGX with additional correction to account for multiple scattering, preserve energy and "
4722 "prevent unexpected darkening at high roughness"},
4723 {0,
nullptr, 0,
nullptr,
nullptr},
4728 "PHYSICAL_CONDUCTOR",
4730 "Physical Conductor",
4731 "Fresnel conductor based on the complex refractive index per color channel"},
4736 "An approximation of the Fresnel conductor curve based on the colors at perpendicular and "
4737 "near-grazing (roughly 82°) angles"},
4738 {0,
nullptr, 0,
nullptr,
nullptr},
4749 "GGX with additional correction to account for multiple scattering, preserve energy and "
4750 "prevent unexpected darkening at high roughness"},
4751 {0,
nullptr, 0,
nullptr,
nullptr},
4761 "GGX with additional correction to account for multiple scattering, preserve energy and "
4762 "prevent unexpected darkening at high roughness"},
4763 {0,
nullptr, 0,
nullptr,
nullptr},
4769 {0,
nullptr, 0,
nullptr,
nullptr},
4773 {
SHD_SHEEN_ASHIKHMIN,
"ASHIKHMIN", 0,
"Ashikhmin",
"Classic Ashikhmin velvet (legacy model)"},
4778 "Microflake-based model of multiple scattering between normal-oriented fibers"},
4779 {0,
nullptr, 0,
nullptr,
nullptr},
4785 {0,
nullptr, 0,
nullptr,
nullptr},
4793 "The light that bounces off the surface of the hair"},
4798 "The light that passes through the hair and exits on the other side"},
4799 {0,
nullptr, 0,
nullptr,
nullptr},
4807 "Near-field hair scattering model by Chiang et al. 2016, suitable for close-up looks, but is "
4808 "more noisy when viewing from a distance."},
4813 "Multi-scale hair scattering model by Huang et al. 2022, suitable for viewing both up close "
4814 "and from a distance, supports elliptical cross-sections and has more precise highlight in "
4815 "forward scattering directions."},
4816 {0,
nullptr, 0,
nullptr,
nullptr},
4823 "Absorption Coefficient",
4824 "Directly set the absorption coefficient \"sigma_a\" (this is not the most intuitive way to "
4829 "Melanin Concentration",
4830 "Define the melanin concentrations below to get the most realistic-looking hair (you can get "
4831 "the concentrations for different types of hair online)"},
4836 "Choose the color of your preference, and the shader will approximate the absorption "
4837 "coefficient to render lookalike hair"},
4838 {0,
nullptr, 0,
nullptr,
nullptr},
4844 {0,
nullptr, 0,
nullptr,
nullptr},
4850 {0,
nullptr, 0,
nullptr,
nullptr},
4859 "GGX with additional correction to account for multiple scattering, preserve energy and "
4860 "prevent unexpected darkening at high roughness"},
4861 {0,
nullptr, 0,
nullptr,
nullptr},
4867 {0,
nullptr, 0,
nullptr,
nullptr},
4874 "Christensen-Burley",
4875 "Approximation to physically based volume scattering"},
4880 "Volumetric approximation to physically based volume scattering, using the scattering radius "
4885 "Random Walk (Skin)",
4886 "Volumetric approximation to physically based volume scattering, with scattering radius "
4887 "automatically adjusted to match color textures. Designed for skin shading."},
4889 "RANDOM_WALK_LEGACY",
4891 "Random Walk (Legacy)",
4892 "Volumetric approximation to physically based volume scattering, using the scattering radius "
4894 {0,
nullptr, 0,
nullptr,
nullptr}};
4901 "Cause the image to repeat horizontally and vertically"},
4906 "Extend by repeating edge pixels of the image"},
4911 "Clip to image size and set exterior pixels as transparent"},
4916 "Repeatedly flip the image horizontally and vertically"},
4917 {0,
nullptr, 0,
nullptr,
nullptr},
4922 "HENYEY_GREENSTEIN",
4924 "Henyey-Greenstein",
4925 "Henyey-Greenstein, default phase function for the scattering of light"},
4930 "Fournier-Forand phase function, used for the scattering of light in underwater "
4936 "Draine phase functions, mostly used for the scattering of light in interstellar dust"},
4941 "Rayleigh phase function, mostly used for particles smaller than the wavelength of light, "
4942 "such as scattering of sunlight in earth's atmosphere"},
4947 "Approximation of Mie scattering in water droplets, used for scattering in clouds and fog"},
4948 {0,
nullptr, 0,
nullptr,
nullptr},
4953 const char *accessor,
4954 const bool add_socket_type,
4955 const bool add_vector_socket_dimensions =
false)
4960 char name_set_func[128];
4961 SNPRINTF(name_set_func,
"rna_Node_ItemArray_item_name_set<%s>", accessor);
4963 char item_update_func[128];
4964 SNPRINTF(item_update_func,
"rna_Node_ItemArray_item_update<%s>", accessor);
4965 const char *item_update_func_ptr = allocator.
copy_string(item_update_func).
c_str();
4967 char socket_type_itemf[128];
4968 SNPRINTF(socket_type_itemf,
"rna_Node_ItemArray_socket_type_itemf<%s>", accessor);
4970 char color_get_func[128];
4971 SNPRINTF(color_get_func,
"rna_Node_ItemArray_item_color_get<%s>", accessor);
4980 if (add_socket_type) {
4989 if (add_vector_socket_dimensions) {
5005 prop,
"Color",
"Color of the corresponding socket type in the node editor");
5009 const char *item_name,
5010 const char *accessor_name)
5016 char remove_call[128];
5017 SNPRINTF(remove_call,
"rna_Node_ItemArray_remove<%s>", accessor_name);
5018 char clear_call[128];
5019 SNPRINTF(clear_call,
"rna_Node_ItemArray_clear<%s>", accessor_name);
5020 char move_call[128];
5021 SNPRINTF(move_call,
"rna_Node_ItemArray_move<%s>", accessor_name);
5026 parm =
RNA_def_pointer(func,
"item", item_name,
"Item",
"The item to remove");
5037 func,
"from_index", -1, 0,
INT_MAX,
"From Index",
"Index of the item to move", 0, 10000);
5040 func,
"to_index", -1, 0,
INT_MAX,
"To Index",
"Target index for the item", 0, 10000);
5045 const char *item_name,
5046 const char *accessor_name)
5053 SNPRINTF(name,
"rna_Node_ItemArray_new_with_socket_and_name<%s>", accessor_name);
5063 "Socket type of the item");
5084 prop,
"Active Output",
"True if this node is used as the active group output");
5097 prop,
nullptr,
"rna_NodeGroup_node_tree_set",
nullptr,
"rna_NodeGroup_node_tree_poll");
5105 const char *struct_name,
5106 const char *base_name,
5107 const char *ui_name,
5108 const char *ui_desc,
5109 const char *reg_func)
5165 {
CD_PROP_FLOAT,
"FLOAT", ICON_NODE_SOCKET_FLOAT,
"Float",
"Floating-point value"},
5168 ICON_NODE_SOCKET_VECTOR,
5170 "3D vector with floating-point values"},
5171 {0,
nullptr, 0,
nullptr,
nullptr},
5220 {0,
nullptr, 0,
nullptr,
nullptr},
5266 prop,
"Rounding Mode",
"Method used to convert the float to an integer");
5375 prop,
"Node Output",
"For node-based textures, which output node to use");
5453 prop,
"rna_NodeInputVector_vector_get",
"rna_NodeInputVector_vector_set",
nullptr);
5477 prop,
"rna_NodeInputIntVector_vector_get",
"rna_NodeInputIntVector_vector_set",
nullptr);
5515 prop,
"Active Output",
"True if this node is used as the active output");
5523 prop,
"Target",
"Which renderer and viewport shading types to use the shaders for");
5598 "SINGLE_SCATTERING",
5600 "Single Scattering",
5601 "Single scattering sky model"},
5603 "MULTIPLE_SCATTERING",
5605 "Multiple Scattering",
5606 "Multiple scattering sky model (more accurate)"},
5608 {
SHD_SKY_HOSEK,
"HOSEK_WILKIE", 0,
"Hosek / Wilkie",
"Hosek / Wilkie 2012 (Legacy)"},
5609 {0,
nullptr, 0,
nullptr,
nullptr},
5663 "Density of air molecules.\n"
5664 "0 means no air, 1 means urban city air");
5672 "Density of dust, pollution and water droplets.\n"
5673 "0 means no aerosols, 1 means urban city aerosols");
5681 "Density of ozone layer.\n"
5682 "0 means no ozone, 1 means urban city ozone");
5704 prop,
"Ground Albedo",
"Ground color that is subtly reflected in the sky");
5710 {
SHD_INTERP_CLOSEST,
"Closest", 0,
"Closest",
"No interpolation (sample closest texel)"},
5712 {
SHD_INTERP_SMART,
"Smart", 0,
"Smart",
"Bicubic when magnifying, else bilinear (OSL only)"},
5713 {0,
nullptr, 0,
nullptr,
nullptr},
5723 "Equirectangular or latitude-longitude projection"},
5728 "Projection from an orthographic photo of a mirror ball"},
5729 {0,
nullptr, 0,
nullptr,
nullptr},
5742 prop,
nullptr,
nullptr,
nullptr,
"rna_Image_no_renderresult_or_viewer_poll");
5763 "Parameters defining which layer, pass and frame of the image is displayed");
5774 "Use the 2D vector (X, Y) as input. The Z component is ignored."},
5776 {0,
nullptr, 0,
nullptr,
nullptr},
5797 "Image is projected flat using the X and Y coordinates of the texture vector"},
5802 "Image is projected using different components for each side of the object space bounding "
5808 "Image is projected spherically using the Z axis as central"},
5813 "Image is projected from the tube using the Z axis as central"},
5814 {0,
nullptr, 0,
nullptr,
nullptr},
5827 prop,
nullptr,
nullptr,
nullptr,
"rna_Image_no_renderresult_or_viewer_poll");
5835 prop,
"Projection",
"Method to project 2D image on object with a 3D texture vector");
5846 prop,
"Projection Blend",
"For box projection, amount of blend to use between sides");
5852 prop,
"Extension",
"How the image is extrapolated past its original bounds");
5862 "Parameters defining which layer, pass and frame of the image is displayed");
5881 {
SHD_INTERP_CLOSEST,
"Closest", 0,
"Closest",
"No interpolation (sample closest texel)"},
5883 {0,
nullptr, 0,
nullptr,
nullptr},
5898 prop,
"Extension",
"How the image is extrapolated past its original bounds");
5973 "Create a progression easing from one step to the next"},
5980 "Create a quadratic progression in the shape of a sphere"},
5982 {0,
nullptr, 0,
nullptr,
nullptr},
6003 "More uneven result (varies with location), more similar to a real terrain"},
6005 "RIDGED_MULTIFRACTAL",
6007 "Ridged Multifractal",
6008 "Create sharp peaks"},
6010 "HYBRID_MULTIFRACTAL",
6012 "Hybrid Multifractal",
6013 "Create peaks and valleys with different roughness values"},
6014 {
SHD_NOISE_FBM,
"FBM", 0,
"fBM",
"The standard fractal Perlin noise"},
6019 "Similar to Hybrid Multifractal creates a heterogeneous terrain, but with the likeness of "
6021 {0,
nullptr, 0,
nullptr,
nullptr},
6070 "How often rows are offset. A value of 2 gives an even/uneven pattern of rows.");
6078 prop,
"Squash Frequency",
"How often rows consist of \"squished\" bricks");
6086 prop,
"Offset Amount",
"Determines the brick offset of the various rows");
6096 "Factor to adjust the brick's width for particular rows determined by the Offset Frequency");
6122 {0,
nullptr, 0,
nullptr,
nullptr}};
6129 "Computes the distance to the closest point as well as its position and color"},
6134 "Computes the distance to the second closest point as well as its position and color"},
6139 "Smoothed version of F1. Weighted sum of neighbor voronoi cells."},
6144 "Computes the distance to the edge of the voronoi cell"},
6149 "Computes the radius of the n-sphere inscribed in the voronoi cell"},
6150 {0,
nullptr, 0,
nullptr,
nullptr}};
6168 prop,
"Distance Metric",
"The distance metric used to compute the texture");
6175 prop,
"Feature Output",
"The Voronoi feature that the node will compute");
6187 {
SHD_WAVE_BANDS,
"BANDS", 0,
"Bands",
"Use standard wave texture in bands"},
6188 {
SHD_WAVE_RINGS,
"RINGS", 0,
"Rings",
"Use wave texture in rings"},
6189 {0,
nullptr, 0,
nullptr,
nullptr},
6197 {0,
nullptr, 0,
nullptr,
nullptr},
6208 "Rings along spherical distance"},
6209 {0,
nullptr, 0,
nullptr,
nullptr},
6216 {0,
nullptr, 0,
nullptr,
nullptr},
6271 prop,
"Object",
"Use coordinates from this object (for object texture coordinates output)");
6277 prop,
"From Instancer",
"Use the parent of the instance object if possible");
6290 "Transform a normal vector with unit length"},
6291 {0,
nullptr, 0,
nullptr,
nullptr},
6400 prop,
"Subsurface Method",
"Method for rendering subsurface scattering");
6466 prop,
"Invert",
"Invert the bump mapping direction to push into the surface instead of out");
6500 prop,
"Color Parametrization",
"Select the shader's color parametrization");
6513 prop,
"From Instancer",
"Use the parent of the instance object if possible");
6545 prop,
"Use Tips",
"Lower half of the texture is for tips of the stroke");
6552 {
SHD_SPACE_TANGENT,
"TANGENT", 0,
"Tangent Space",
"Tangent space normal mapping"},
6553 {
SHD_SPACE_OBJECT,
"OBJECT", 0,
"Object Space",
"Object space normal mapping"},
6554 {
SHD_SPACE_WORLD,
"WORLD", 0,
"World Space",
"World space normal mapping"},
6558 "Blender Object Space",
6559 "Object space normal mapping, compatible with Blender render baking"},
6563 "Blender World Space",
6564 "World space normal mapping, compatible with Blender render baking"},
6565 {0,
nullptr, 0,
nullptr,
nullptr},
6573 "Normal map uses OpenGL convention, with Y axis in the green channel pointing up"},
6578 "Normal map uses DirectX convention, with Y axis in the green channel pointing down"},
6579 {0,
nullptr, 0,
nullptr,
nullptr},
6605 "Apply normal map relative to the smooth undisplaced surface, for normal maps that match "
6606 "the displacement map"},
6611 "Apply normal map relative to the displaced surface, for normal maps that are to be "
6612 "applied in addition to the displacement map"},
6613 {0,
nullptr, 0,
nullptr,
nullptr},
6621 "Base surface that the normal map is applied relative to, when displacement is used");
6638 "Normalize the X coordinate of the Segment Coordinates output to a [0, 1] interval and "
6639 "offset the Y coordinate into a [0, infinity) interval. When checked, the textures are "
6640 "stretched to fit into each angular segment. When not checked, the parts of the textures "
6641 "that don't fit into each angular segment are cropped");
6655 prop,
nullptr,
nullptr,
"rna_NodeRaycastSampleAttributeItem_data_type_itemf");
6660 "rna_Node_ItemArray_item_update<RaycastSampleAttributeItemsAccessor>");
6670 srna,
"NodeRaycastSampleAttributeItem",
"RaycastSampleAttributeItemsAccessor");
6672 srna,
"NodeRaycastSampleAttributeItem",
"RaycastSampleAttributeItemsAccessor");
6689 prop,
nullptr,
"sample_attribute_items",
"sample_attribute_items_num");
6705 "rna_Node_ItemArray_active_get<RaycastSampleAttributeItemsAccessor>",
6706 "rna_Node_ItemArray_active_set<RaycastSampleAttributeItemsAccessor>",
6721 "Displacement is in object space, affected by object scale"},
6726 "Displacement is in world space, not affected by object scale"},
6727 {0,
nullptr, 0,
nullptr,
nullptr},
6748 "Tangent space vector displacement mapping"},
6749 {
SHD_SPACE_OBJECT,
"OBJECT", 0,
"Object Space",
"Object space vector displacement mapping"},
6750 {
SHD_SPACE_WORLD,
"WORLD", 0,
"World Space",
"World space vector displacement mapping"},
6751 {0,
nullptr, 0,
nullptr,
nullptr},
6768 {
SHD_TANGENT_RADIAL,
"RADIAL", 0,
"Radial",
"Radial tangent around the X, Y or Z axis"},
6770 {0,
nullptr, 0,
nullptr,
nullptr},
6777 {0,
nullptr, 0,
nullptr,
nullptr},
6834 prop,
"Only Local",
"Only consider the object itself when computing AO");
6873 prop,
"Source",
"Whether the IES file is loaded from disk or from a text data-block");
6935 "Automatically update the shader when the .osl file changes (external scripts only)");
6939 "rna_ShaderNodeScript_bytecode_get",
6940 "rna_ShaderNodeScript_bytecode_length",
6941 "rna_ShaderNodeScript_bytecode_set");
6947 prop,
"Bytecode Hash",
"Hash of compile bytecode, for quick equality checking");
6956 func =
RNA_def_function(srna,
"find_socket",
"rna_ShaderNodeScript_find_socket");
6958 parm =
RNA_def_string(func,
"name",
nullptr, 0,
"Socket name",
"");
6960 RNA_def_boolean(func,
"is_output",
false,
"Output",
"Whether the socket is an output");
6964 func =
RNA_def_function(srna,
"add_socket",
"rna_ShaderNodeScript_add_socket");
6971 RNA_def_boolean(func,
"is_output",
false,
"Output",
"Whether the socket is an output");
6975 func =
RNA_def_function(srna,
"remove_socket",
"rna_ShaderNodeScript_remove_socket");
6993 prop,
"Frames",
"Number of images of a movie to use");
7003 "Global starting frame of the movie/sequence, assuming first picture has a #1");
7011 prop,
"Offset",
"Offset the number of the frame to use in the animation");
7017 prop,
"Cyclic",
"Cycle the images in the movie");
7063 prop,
nullptr,
nullptr,
nullptr,
"rna_Image_no_renderresult_or_viewer_poll");
7104 "Override Node Format",
7105 "Use a different format instead of the node format for this file");
7111 prop,
"Save as Render",
"Apply render part of display transform when saving byte image");
7125 srna,
"NodeCompositorFileOutputItem",
"FileOutputItemsAccessor");
7127 srna,
"NodeCompositorFileOutputItem",
"FileOutputItemsAccessor");
7164 "The base name of the file. Other information might be included in the "
7165 "final file name depending on the node options");
7177 prop,
"Save as Render",
"Apply render part of display transform when saving byte image");
7186 "Add the file format extensions to the saved file name (eg: filename + .jpg)");
7199 "rna_NodeConvertColorSpace_from_color_space_get",
7200 "rna_NodeConvertColorSpace_from_color_space_set",
7201 "rna_NodeConvertColorSpace_color_space_itemf");
7210 "rna_NodeConvertColorSpace_from_interop_id_get",
7211 "rna_NodeConvertColorSpace_from_interop_id_set",
7212 "rna_NodeConvertColorSpace_interop_id_itemf");
7220 "rna_NodeConvertColorSpace_to_color_space_get",
7221 "rna_NodeConvertColorSpace_to_color_space_set",
7222 "rna_NodeConvertColorSpace_color_space_itemf");
7231 "rna_NodeConvertColorSpace_to_interop_id_get",
7232 "rna_NodeConvertColorSpace_to_interop_id_set",
7233 "rna_NodeConvertColorSpace_interop_id_itemf");
7259 {8,
"OCTAGON", 0,
"Octagonal",
"8 sides"},
7260 {7,
"HEPTAGON", 0,
"Heptagonal",
"7 sides"},
7261 {6,
"HEXAGON", 0,
"Hexagonal",
"6 sides"},
7262 {5,
"PENTAGON", 0,
"Pentagonal",
"5 sides"},
7263 {4,
"SQUARE", 0,
"Square",
"4 sides"},
7264 {3,
"TRIANGLE", 0,
"Triangular",
"3 sides"},
7265 {0,
"CIRCLE", 0,
"Circular",
""},
7266 {0,
nullptr, 0,
nullptr,
nullptr},
7276 prop,
"Scene",
"Scene from which to select the active camera (render scene if undefined)");
7300 "Amount of focal blur, 128 (infinity) is perfect focus, half the value doubles "
7315 "Disable when using an image as input instead of actual z-buffer "
7316 "(auto enabled if node not image based, eg. time node)");
7326 "Scale the Z input when not using a z-buffer, controls maximum blur designated "
7327 "by the color white or input value 1");
7338 "rna_NodeColorBalance_input_whitepoint_get",
7339 "rna_NodeColorBalance_input_whitepoint_set",
7342 "Input White Point",
7343 "The color which gets mapped to white "
7344 "(automatically converted to/from temperature and tint)");
7350 "rna_NodeColorBalance_output_whitepoint_get",
7351 "rna_NodeColorBalance_output_whitepoint_set",
7354 "Output White Point",
7355 "The color which gets white gets mapped to "
7356 "(automatically converted to/from temperature and tint)");
7378 "Use RGB (Red, Green, Blue) color processing"},
7383 "Use HSV (Hue, Saturation, Value) color processing"},
7388 "Use HSL (Hue, Saturation, Lightness) color processing"},
7393 "Use YCbCr (Y - luma, Cb - blue-difference chroma, Cr - red-difference chroma) color "
7399 "Use YUV (Y - luma, U V - chroma) color processing"},
7400 {0,
nullptr, 0,
nullptr,
nullptr},
7579 "rna_NodeCryptomatte_matte_get",
7580 "rna_NodeCryptomatte_matte_length",
7581 "rna_NodeCryptomatte_matte_set");
7583 prop,
"Matte Objects",
"List of object and material crypto IDs to include in matte");
7590 prop,
"Add",
"Add object or material to matte, by picking a color from the Pick output");
7600 "Remove object or material from matte, by picking a color from the Pick output");
7620 "Use Cryptomatte passes from a render"},
7625 "Use Cryptomatte passes from an image"},
7626 {0,
nullptr, 0,
nullptr,
nullptr}};
7637 prop,
"rna_NodeCryptomatte_scene_get",
"rna_NodeCryptomatte_scene_set",
nullptr,
nullptr);
7646 "rna_NodeCryptomatte_image_get",
7647 "rna_NodeCryptomatte_image_set",
7649 "rna_NodeCryptomatte_image_poll");
7662 "rna_NodeCryptomatte_layer_name_get",
7663 "rna_NodeCryptomatte_layer_name_set",
7664 "rna_NodeCryptomatte_layer_name_itemf");
7709 prop,
nullptr,
nullptr,
nullptr,
"rna_Image_no_renderresult_or_viewer_poll");
7715 prop,
"Image User",
"Parameters defining the image duration, offset and related settings");
7728 prop,
"Offset Amount",
"Determines the brick offset of the various rows");
7744 "Factor to adjust the brick's width for particular rows determined by the Offset Frequency");
7764 "Find sample positions on the curve using a factor of its total length"},
7769 "Find sample positions on the curve using a distance from its beginning"},
7770 {0,
nullptr, 0,
nullptr,
nullptr},
7785 "Sample lengths based on the total length of all curves, rather than "
7786 "using a length inside each selected curve");
7793 prop,
nullptr,
nullptr,
"rna_GeometryNodeAttributeType_type_with_socket_itemf");
7819 static const EnumPropertyItem rna_node_geometry_distribute_points_on_faces_mode_items[] = {
7824 "Distribute points randomly on the surface"},
7829 "Distribute the points randomly on the surface while taking a minimum distance between "
7830 "points into account"},
7831 {0,
nullptr, 0,
nullptr,
nullptr},
7846 "Output the normal and rotation values that have been output "
7847 "before the node started taking smooth normals into account");
7886 prop,
"Paired Output",
"Zone output node that this input node is paired with");
7888 func =
RNA_def_function(srna,
"pair_with_output",
"rna_Node_pair_with_output");
7892 func,
"output_node",
"NodeInternal",
"Output Node",
"Zone output node to pair with");
7896 func,
"result",
false,
"Result",
"True if pairing the node was successful");
7941 prop,
nullptr,
nullptr,
"rna_GeometryNodeAttributeDomain_attribute_domain_itemf");
7945 "Domain where the field is captured if it is not already an attribute-field");
7948 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<SimulationItemsAccessor>");
7955 srna =
RNA_def_struct(brna,
"NodeGeometrySimulationOutputItems",
nullptr);
7960 srna,
"SimulationStateItem",
"SimulationItemsAccessor");
7989 "rna_Node_ItemArray_active_get<SimulationItemsAccessor>",
7990 "rna_Node_ItemArray_active_set<SimulationItemsAccessor>",
8004 prop,
"rna_MergeLayers_mode_get",
"rna_MergeLayers_mode_set",
nullptr);
8015 prop,
"rna_SetGreasePencilColor_mode_get",
"rna_SetGreasePencilColor_mode_set",
nullptr);
8026 "rna_SetGreasePencilDepth_depth_order_get",
8027 "rna_SetGreasePencilDepth_depth_order_set",
8046 srna =
RNA_def_struct(brna,
"NodeGeometryRepeatOutputItems",
nullptr);
8079 "rna_Node_ItemArray_active_get<RepeatItemsAccessor>",
8080 "rna_Node_ItemArray_active_set<RepeatItemsAccessor>",
8091 "Iteration index that is used by inspection features like the viewer "
8092 "node or socket inspection");
8111 prop,
"Auto Remove",
"Remove the item automatically when it is unlinked");
8113 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<GeoViewerItemsAccessor>");
8123 srna,
"NodeGeometryViewerItem",
"GeoViewerItemsAccessor");
8125 srna,
"NodeGeometryViewerItem",
"GeoViewerItemsAccessor");
8163 "rna_Node_ItemArray_active_get<GeoViewerItemsAccessor>",
8164 "rna_Node_ItemArray_active_set<GeoViewerItemsAccessor>",
8183 srna,
"ForeachGeometryElementInputItemsAccessor",
true);
8190 srna =
RNA_def_struct(brna,
"NodeGeometryForeachGeometryElementInputItems",
nullptr);
8195 srna,
"ForeachGeometryElementInputItem",
"ForeachGeometryElementInputItemsAccessor");
8197 srna,
"ForeachGeometryElementInputItem",
"ForeachGeometryElementInputItemsAccessor");
8204 srna =
RNA_def_struct(brna,
"ForeachGeometryElementMainItem",
nullptr);
8209 srna,
"ForeachGeometryElementMainItemsAccessor",
true);
8216 srna =
RNA_def_struct(brna,
"NodeGeometryForeachGeometryElementMainItems",
nullptr);
8221 srna,
"ForeachGeometryElementMainItem",
"ForeachGeometryElementMainItemsAccessor");
8223 srna,
"ForeachGeometryElementMainItem",
"ForeachGeometryElementMainItemsAccessor");
8231 srna =
RNA_def_struct(brna,
"ForeachGeometryElementGenerationItem",
nullptr);
8236 srna,
"ForeachGeometryElementGenerationItemsAccessor",
true);
8244 "rna_Node_ItemArray_item_update<ForeachGeometryElementGenerationItemsAccessor>");
8251 srna =
RNA_def_struct(brna,
"NodeGeometryForeachGeometryElementGenerationItems",
nullptr);
8257 "ForeachGeometryElementGenerationItem",
8258 "ForeachGeometryElementGenerationItemsAccessor");
8260 "ForeachGeometryElementGenerationItem",
8261 "ForeachGeometryElementGenerationItemsAccessor");
8291 prop,
nullptr,
"generation_items.items",
"generation_items.items_num");
8325 "Iteration index that is used by inspection features like the viewer "
8326 "node or socket inspection");
8347 "rna_Node_ItemArray_structure_type_itemf<ClosureInputItemsAccessor>");
8351 "What kind of higher order types are expected to flow through this socket");
8353 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<ClosureInputItemsAccessor>");
8363 srna,
"NodeClosureInputItem",
"ClosureInputItemsAccessor");
8365 srna,
"NodeClosureInputItem",
"ClosureInputItemsAccessor");
8384 "rna_Node_ItemArray_structure_type_itemf<ClosureOutputItemsAccessor>");
8388 "What kind of higher order types are expected to flow through this socket");
8390 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<ClosureOutputItemsAccessor>");
8400 srna,
"NodeClosureOutputItem",
"ClosureOutputItemsAccessor");
8402 srna,
"NodeClosureOutputItem",
"ClosureOutputItemsAccessor");
8446 "This zone defines a closure signature that should be used by other nodes");
8462 prop,
nullptr,
nullptr,
"rna_NodeGeometryCaptureAttributeItem_data_type_itemf");
8466 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<CaptureAttributeItemsAccessor>");
8476 srna,
"NodeGeometryCaptureAttributeItem",
"CaptureAttributeItemsAccessor");
8478 srna,
"NodeGeometryCaptureAttributeItem",
"CaptureAttributeItemsAccessor");
8506 "rna_Node_ItemArray_active_get<CaptureAttributeItemsAccessor>",
8507 "rna_Node_ItemArray_active_set<CaptureAttributeItemsAccessor>",
8518 prop,
nullptr,
nullptr,
"rna_GeometryNodeAttributeDomain_attribute_domain_itemf");
8527 srna =
RNA_def_struct(brna,
"NodeEvaluateClosureInputItem",
nullptr);
8538 "rna_Node_ItemArray_structure_type_itemf<EvaluateClosureInputItemsAccessor>");
8542 "What kind of higher order types are expected to flow through this socket");
8545 "rna_Node_ItemArray_item_update<EvaluateClosureInputItemsAccessor>");
8552 srna =
RNA_def_struct(brna,
"NodeEvaluateClosureInputItems",
nullptr);
8557 srna,
"NodeEvaluateClosureInputItem",
"EvaluateClosureInputItemsAccessor");
8559 srna,
"NodeEvaluateClosureInputItem",
"EvaluateClosureInputItemsAccessor");
8567 srna =
RNA_def_struct(brna,
"NodeEvaluateClosureOutputItem",
nullptr);
8578 "rna_Node_ItemArray_structure_type_itemf<EvaluateClosureOutputItemsAccessor>");
8582 "What kind of higher order types are expected to flow through this socket");
8585 "rna_Node_ItemArray_item_update<EvaluateClosureOutputItemsAccessor>");
8592 srna =
RNA_def_struct(brna,
"NodeEvaluateClosureOutputItems",
nullptr);
8597 srna,
"NodeEvaluateClosureOutputItem",
"EvaluateClosureOutputItemsAccessor");
8599 srna,
"NodeEvaluateClosureOutputItem",
"EvaluateClosureOutputItemsAccessor");
8646 "This node defines a closure signature that should be used by other nodes");
8664 prop,
nullptr,
nullptr,
"rna_GeometryNodeAttributeDomain_attribute_domain_itemf");
8668 "Domain where the field is captured if it is not already an attribute-field");
8671 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<BakeItemsAccessor>");
8677 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<BakeItemsAccessor>");
8689 srna,
"NodeGeometryBakeItem",
"BakeItemsAccessor");
8718 "rna_Node_ItemArray_active_get<BakeItemsAccessor>",
8719 "rna_Node_ItemArray_active_set<BakeItemsAccessor>",
8738 "Rasterize a scalar attribute"},
8743 "Rasterize a vector attribute"},
8744 {0,
nullptr, 0,
nullptr,
nullptr},
8747 srna =
RNA_def_struct(brna,
"NodeGeometryRasterizePointsItem",
nullptr);
8753 prop,
nullptr,
nullptr,
"rna_Node_ItemArray_item_name_set<RasterizePointsItemsAccessor>");
8757 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<RasterizePointsItemsAccessor>");
8764 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<RasterizePointsItemsAccessor>");
8773 srna =
RNA_def_struct(brna,
"NodeGeometryRasterizePointsItems",
nullptr);
8777 func =
RNA_def_function(srna,
"new",
"rna_NodeGeometryRasterizePointsItems_new");
8783 parm =
RNA_def_pointer(func,
"item",
"NodeGeometryRasterizePointsItem",
"Item",
"New item");
8788 srna,
"NodeGeometryRasterizePointsItem",
"RasterizePointsItemsAccessor");
8816 "rna_Node_ItemArray_active_get<RasterizePointsItemsAccessor>",
8817 "rna_Node_ItemArray_active_set<RasterizePointsItemsAccessor>",
8840 "rna_Node_ItemArray_structure_type_itemf<CombineBundleItemsAccessor>");
8844 "What kind of higher order types are expected to flow through this socket");
8846 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<CombineBundleItemsAccessor>");
8856 srna,
"NodeCombineBundleItem",
"CombineBundleItemsAccessor");
8858 srna,
"NodeCombineBundleItem",
"CombineBundleItemsAccessor");
8888 "This node defines a bundle signature that should be used by other nodes");
8909 "rna_Node_ItemArray_structure_type_itemf<SeparateBundleItemsAccessor>");
8913 "What kind of higher order types are expected to flow through this socket");
8915 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<SeparateBundleItemsAccessor>");
8925 srna,
"NodeSeparateBundleItem",
"SeparateBundleItemsAccessor");
8927 srna,
"NodeSeparateBundleItem",
"SeparateBundleItemsAccessor");
8957 "This node defines a bundle signature that should be used by other nodes");
8992 parm =
RNA_def_pointer(func,
"item",
"IndexSwitchItem",
"Item",
"New item");
9044 parm =
RNA_def_pointer(func,
"item",
"CombineListItem",
"Item",
"New item");
9081 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<FieldToGridItemsAccessor>");
9094 srna,
"GeometryNodeFieldToGridItem",
"FieldToGridItemsAccessor");
9096 srna,
"GeometryNodeFieldToGridItem",
"FieldToGridItemsAccessor");
9112 prop,
nullptr,
nullptr,
"rna_GeometryNodeClosureToListItem_structure_type_itemf");
9125 srna,
"GeometryNodeClosureToListItem",
"ClosureToListItemsAccessor");
9127 srna,
"GeometryNodeClosureToListItem",
"ClosureToListItemsAccessor");
9155 "rna_Node_ItemArray_active_get<ClosureToListItemsAccessor>",
9156 "rna_Node_ItemArray_active_set<ClosureToListItemsAccessor>",
9189 "rna_Node_ItemArray_active_get<FieldToGridItemsAccessor>",
9190 "rna_Node_ItemArray_active_set<FieldToGridItemsAccessor>",
9226 srna,
"GeometryNodeFieldToListItem",
"FieldToListItemsAccessor");
9228 srna,
"GeometryNodeFieldToListItem",
"FieldToListItemsAccessor");
9256 "rna_Node_ItemArray_active_get<FieldToListItemsAccessor>",
9257 "rna_Node_ItemArray_active_set<FieldToListItemsAccessor>",
9269 srna =
RNA_def_struct(brna,
"NodeFunctionFormatStringItem",
nullptr);
9279 srna =
RNA_def_struct(brna,
"NodeFunctionFormatStringItems",
nullptr);
9284 srna,
"NodeFunctionFormatStringItem",
"FormatStringItemsAccessor");
9286 srna,
"NodeFunctionFormatStringItem",
"FormatStringItemsAccessor");
9340 "Rotate around an axis by an angle"},
9345 "Rotate around the X, Y, and Z axes"},
9346 {0,
nullptr, 0,
nullptr,
nullptr},
9354 "Rotate the input rotation in the local space of the object"},
9359 "Rotate the input rotation in its local space"},
9360 {0,
nullptr, 0,
nullptr,
nullptr},
9387 prop,
nullptr,
nullptr,
"rna_GeometryNodeAttributeType_type_with_socket_itemf");
9396 prop,
nullptr,
nullptr,
"rna_GeometryNodeAttributeDomain_attribute_domain_itemf");
9404 "Clamp the indices to the size of the attribute domain instead of "
9405 "outputting a default value for invalid indices");
9454 "Flat Corner Normals",
9455 "Always use face normals for the face corner domain, matching old behavior of the node");
9483 prop,
nullptr,
nullptr,
nullptr,
"rna_Image_no_renderresult_or_viewer_poll");
9495 prop,
nullptr,
nullptr,
"rna_Node_ItemArray_item_name_set<MenuSwitchItemsAccessor>");
9499 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<MenuSwitchItemsAccessor>");
9505 prop,
NC_NODE |
NA_EDITED,
"rna_Node_ItemArray_item_update<MenuSwitchItemsAccessor>");
9517 srna,
"Enum Definition Items",
"Collection of items that make up an enum");
9525 parm =
RNA_def_pointer(func,
"item",
"NodeEnumItem",
"Item",
"New item");
9543 prop,
nullptr,
"enum_definition.items_array",
"enum_definition.items_num");
9557 "rna_Node_ItemArray_active_get<MenuSwitchItemsAccessor>",
9558 "rna_Node_ItemArray_active_set<MenuSwitchItemsAccessor>",
9569 prop,
"rna_NodeMenuSwitch_enum_definition_get",
nullptr,
nullptr,
nullptr);
9572 "Enum Definition (deprecated)",
9573 "The enum definition can now be accessed directly on the node. This "
9574 "exists for backward compatibility.");
9595 srna,
"rna_CompositorNode_register",
"rna_Node_unregister",
nullptr);
9652 prop,
nullptr,
nullptr,
"rna_implicit_conversion_node_socket_type_set");
9659 "rna_NodeImplicitConversion_data_type_get",
9660 "rna_NodeImplicitConversion_data_type_set",
9661 "rna_NodeImplicitConversion_data_type_itemf");
9686 srna =
RNA_def_struct(brna,
"NodeInternalSocketTemplate",
nullptr);
9691 "rna_NodeInternalSocketTemplate_name_get",
9692 "rna_NodeInternalSocketTemplate_name_length",
9699 "rna_NodeInternalSocketTemplate_identifier_get",
9700 "rna_NodeInternalSocketTemplate_identifier_length",
9726 func,
"If non-null output is returned, the node type can be added to the tree");
9729 parm =
RNA_def_pointer(func,
"node_tree",
"NodeTree",
"Node Tree",
"");
9732 func =
RNA_def_function(srna,
"poll_instance",
"rna_NodeInternal_poll_instance");
9734 func,
"If non-null output is returned, the node can be added to the tree");
9736 parm =
RNA_def_pointer(func,
"node_tree",
"NodeTree",
"Node Tree",
"");
9742 func,
"Update on node graph topology changes (adding or removing nodes and links)");
9746 func =
RNA_def_function(srna,
"draw_buttons",
"rna_NodeInternal_draw_buttons");
9757 func =
RNA_def_function(srna,
"draw_buttons_ext",
"rna_NodeInternal_draw_buttons_ext");
9773 const char *structtype = (in_out ==
SOCK_IN ?
"NodeInputs" :
"NodeOutputs");
9774 const char *uiname = (in_out ==
SOCK_IN ?
"Node Inputs" :
"Node Outputs");
9775 const char *newfunc = (in_out ==
SOCK_IN ?
"rna_Node_inputs_new" :
"rna_Node_outputs_new");
9776 const char *clearfunc = (in_out ==
SOCK_IN ?
"rna_Node_inputs_clear" :
"rna_Node_outputs_clear");
9777 const char *movefunc = (in_out ==
SOCK_IN ?
"rna_Node_inputs_move" :
"rna_Node_outputs_move");
9793 func,
"use_multi_input",
false,
"",
"Make the socket multi-input (valid for inputs only)");
9795 parm =
RNA_def_pointer(func,
"socket",
"NodeSocket",
"",
"New socket");
9802 parm =
RNA_def_pointer(func,
"socket",
"NodeSocket",
"",
"The socket to remove");
9813 func,
"from_index", -1, 0,
INT_MAX,
"From Index",
"Index of the socket to move", 0, 10000);
9816 func,
"to_index", -1, 0,
INT_MAX,
"To Index",
"Target index for the socket", 0, 10000);
9833 prop,
"Identifier",
"Unique identifier matching the panel's persistent_uid");
9854 "Propagate every info, error, and warning message upstream"},
9856 "ERRORS_AND_WARNINGS",
9858 "Errors and Warnings",
9859 "Propagate only error and warning messages upstream"},
9864 "Propagate only error messages upstream"},
9866 {0,
nullptr, 0,
nullptr,
nullptr},
9883 prop,
"Type",
"Legacy unique node type identifier, redundant with bl_idname property");
9911 "Height of the node. This property holds true data only under certain circumstances, "
9912 "e.g. for a Frame node after the node graph was displayed. For most types of nodes, "
9913 "the displayed height is based on the node's contents and not reflected in this property.");
9920 prop,
"Dimensions",
"Absolute bounding box dimensions of the node after it was displayed");
9943 "rna_NodeInputs_lookup_string",
9960 "rna_NodeOutputs_lookup_string",
9976 "rna_Node_internal_links_begin",
9977 "rna_iterator_array_next",
9978 "rna_iterator_array_end",
9979 "rna_iterator_array_get",
9986 prop,
"Internal Links",
"Internal input-to-output connections for muting");
9991 prop,
nullptr,
"rna_Node_parent_set",
nullptr,
"rna_Node_parent_poll");
10002 "Warning Propagation",
10003 "The kinds of messages that should be propagated from this node to the parent group node");
10035 "Whether the node options are visible, e.g. the selected data-block of a node group node");
10061 func =
RNA_def_function(srna,
"socket_value_update",
"rna_Node_socket_value_update");
10067 func =
RNA_def_function(srna,
"is_registered_node_type",
"rna_Node_is_registered_node_type");
10076 prop,
"rna_Node_bl_idname_get",
"rna_Node_bl_idname_length",
"rna_Node_bl_idname_set");
10082 prop,
"rna_Node_bl_label_get",
"rna_Node_bl_label_length",
"rna_Node_bl_label_set");
10088 "rna_Node_bl_description_get",
10089 "rna_Node_bl_description_length",
10090 "rna_Node_bl_description_set");
10106 "Legacy unique node type identifier, redundant with bl_idname property");
10118 prop,
"Minimum Width",
"When changing the node's size, it has at least this width");
10124 prop,
"Maximum Width",
"When changing the node's size, it can have at most this width");
10132 "Default height of the node when it is created (mostly unused, see Height)");
10140 "When changing the node's size, it has at least this height (mostly unused, see Height)");
10147 "When changing the node's size, it can have at most this height "
10148 "(mostly unused, see Height)");
10153 func,
"If non-null output is returned, the node type can be added to the tree");
10156 parm =
RNA_def_pointer(func,
"node_tree",
"NodeTree",
"Node Tree",
"");
10161 func,
"If non-null output is returned, the node can be added to the tree");
10164 parm =
RNA_def_pointer(func,
"node_tree",
"NodeTree",
"Node Tree",
"");
10170 func,
"Update on node graph topology changes (adding or removing nodes and links)");
10177 parm =
RNA_def_pointer(func,
"link",
"NodeLink",
"Link",
"Node link that will be inserted");
10190 "Initialize a new instance of this node from an existing node");
10192 parm =
RNA_def_pointer(func,
"node",
"Node",
"Node",
"Existing node to copy");
10232 "debug_zone_body_lazy_function_graph",
10233 "rna_NodeTree_debug_zone_body_lazy_function_graph");
10235 func,
"Get the internal lazy-function graph for the body of this zone");
10243 srna,
"debug_zone_lazy_function_graph",
"rna_NodeTree_debug_zone_lazy_function_graph");
10259 "Node Internal Link",
10260 "Internal link used by muted nodes to connect input to output sockets");
10268 prop,
"rna_NodeInternalLink_from_socket_get",
nullptr,
nullptr,
nullptr);
10277 prop,
"rna_NodeInternalLink_to_socket_get",
nullptr,
nullptr,
nullptr);
10346 "Multi Input Sort ID",
10347 "Used to sort multiple links coming into the same input. The highest ID is at the top.");
10350 srna,
"swap_multi_input_sort_id",
"rna_NodeLink_swap_multi_input_sort_id");
10352 func,
"Swap the order of two links connected to the same multi-input socket");
10358 "The other link. Must link to the same multi-input socket.");
10385 "Type of node to add (Warning: should be same as node.bl_idname, not node.type!)");
10395 parm =
RNA_def_pointer(func,
"node",
"Node",
"",
"The node to remove");
10406 prop,
"rna_NodeTree_active_node_get",
"rna_NodeTree_active_node_set",
nullptr,
nullptr);
10426 parm =
RNA_def_pointer(func,
"input",
"NodeSocket",
"",
"The input socket");
10428 parm =
RNA_def_pointer(func,
"output",
"NodeSocket",
"",
"The output socket");
10434 "Remove existing links if connection limit is exceeded");
10436 "handle_dynamic_sockets",
10438 "Handle Dynamic Sockets",
10439 "Handle node specific features like virtual sockets");
10441 parm =
RNA_def_pointer(func,
"link",
"NodeLink",
"",
"New node link");
10447 parm =
RNA_def_pointer(func,
"link",
"NodeLink",
"",
"The node link to remove");
10468 "Undefined type of nodes (can happen e.g. when a linked node tree goes missing)"},
10469 {
NTREE_CUSTOM,
"CUSTOM", ICON_NONE,
"Custom",
"Custom nodes"},
10470 {
NTREE_SHADER,
"SHADER", ICON_MATERIAL,
"Shader",
"Shader nodes"},
10471 {
NTREE_TEXTURE,
"TEXTURE", ICON_TEXTURE,
"Texture",
"Texture nodes"},
10472 {
NTREE_COMPOSIT,
"COMPOSITING", ICON_RENDERLAYERS,
"Compositing",
"Compositing nodes"},
10473 {
NTREE_GEOMETRY,
"GEOMETRY", ICON_GEOMETRY_NODES,
"Geometry",
"Geometry nodes"},
10474 {0,
nullptr, 0,
nullptr,
nullptr},
10481 "Node tree consisting of linked nodes used for shading, textures and compositing");
10491 prop,
"Color Tag",
"Color tag of the node group which influences the header color");
10498 prop,
"Default Group Node Width",
"The width for newly created group nodes");
10505 prop,
"View Center",
"The current location (offset) of the view for this Node Tree");
10535 prop,
nullptr,
nullptr,
nullptr,
"rna_GPencil_datablocks_annotations_poll");
10547 "Node Tree type (deprecated, bl_idname is the actual node tree type identifier)");
10555 func =
RNA_def_function(srna,
"interface_update",
"rna_NodeTree_interface_update");
10560 func =
RNA_def_function(srna,
"contains_tree",
"rna_NodeTree_contains_tree");
10563 "Check if the node tree contains another. Used to avoid creating recursive node groups.");
10565 func,
"sub_tree",
"NodeTree",
"Node Tree",
"Node tree for recursive check");
10573 "rna_NodeTree_bl_idname_get",
10574 "rna_NodeTree_bl_idname_length",
10575 "rna_NodeTree_bl_idname_set");
10581 "rna_NodeTree_bl_label_get",
10582 "rna_NodeTree_bl_label_length",
10583 "rna_NodeTree_bl_label_set");
10589 "rna_NodeTree_bl_description_get",
10590 "rna_NodeTree_bl_description_length",
10591 "rna_NodeTree_bl_description_set");
10606 "Use Group Interface",
10607 "Determines the visibility of some UI elements related to node groups");
10629 func,
"result_1",
"NodeTree",
"Node Tree",
"Active node tree from context");
10632 func,
"result_2",
"ID",
"Owner ID",
"ID data-block that owns the node tree");
10635 func,
"result_3",
"ID",
"From ID",
"Original ID data-block selected from the context");
10643 func,
"idname",
"NodeSocket",
MAX_NAME,
"Socket Type",
"Identifier of the socket type");
10648 srna,
"debug_lazy_function_graph",
"rna_NodeTree_debug_lazy_function_graph");
10664 srna,
"Compositor Node Tree",
"Node tree consisting of linked nodes used for compositing");
10672 "Unused but kept for compatibility reasons. Use boundaries for viewer "
10673 "nodes and composite backdrop");
10679 prop,
"Strip Modifier",
"The node group is used as a sequencer strip modifier");
10681 "rna_CompositorNodeTree_is_strip_modifier_get",
10682 "rna_CompositorNodeTree_is_strip_modifier_set");
10688 prop,
"Scene Effect",
"The node group can be used as a scene compositor effect");
10691 "rna_CompositorNodeTree_allow_usage_in_scene_compositor_effect_get",
10692 "rna_CompositorNodeTree_allow_usage_in_scene_compositor_effect_set");
10705 "Shader Node Tree",
10706 "Node tree consisting of linked nodes used for materials (and other shading data-blocks)");
10710 func =
RNA_def_function(srna,
"get_output_node",
"ntreeShaderOutputNode");
10712 "Return active shader output node for the specified target");
10726 srna,
"Texture Node Tree",
"Node tree consisting of linked nodes used for textures");
10738 srna,
"Geometry Node Tree",
"Node tree consisting of linked nodes used for geometries");
10746 prop,
"rna_GeometryNodeTree_is_tool_get",
"rna_GeometryNodeTree_is_tool_set");
10752 prop,
"Node Tool Identifier",
"Unique operator identifier for the node tool");
10754 "rna_GeometryNodeTree_node_tool_idname_get",
10755 "rna_GeometryNodeTree_node_tool_idname_length",
10756 "rna_GeometryNodeTree_node_tool_idname_set");
10763 prop,
"rna_GeometryNodeTree_is_modifier_get",
"rna_GeometryNodeTree_is_modifier_set");
10770 prop,
"rna_GeometryNodeTree_is_mode_object_get",
"rna_GeometryNodeTree_is_mode_object_set");
10777 prop,
"rna_GeometryNodeTree_is_mode_edit_get",
"rna_GeometryNodeTree_is_mode_edit_set");
10784 prop,
"rna_GeometryNodeTree_is_mode_sculpt_get",
"rna_GeometryNodeTree_is_mode_sculpt_set");
10791 prop,
"rna_GeometryNodeTree_is_mode_paint_get",
"rna_GeometryNodeTree_is_mode_paint_set");
10798 prop,
"rna_GeometryNodeTree_is_type_mesh_get",
"rna_GeometryNodeTree_is_type_mesh_set");
10805 prop,
"rna_GeometryNodeTree_is_type_curve_get",
"rna_GeometryNodeTree_is_type_curve_set");
10812 "rna_GeometryNodeTree_is_type_pointcloud_get",
10813 "rna_GeometryNodeTree_is_type_pointcloud_set");
10820 "Wait for mouse click input before running the operator from a menu");
10822 "rna_GeometryNodeTree_use_wait_for_click_get",
10823 "rna_GeometryNodeTree_use_wait_for_click_set");
10830 "rna_GeometryNodeTree_is_type_grease_pencil_get",
10831 "rna_GeometryNodeTree_is_type_grease_pencil_set");
10836 "rna_GeometryNodeTree_modifier_manage_panel_get",
10837 "rna_GeometryNodeTree_modifier_manage_panel_set");
10842 "Show Manage Panel",
10843 "Turn on the option to display the manage panel when creating a modifier");
10848 const char *struct_name,
10849 const char *base_name)
10858 func =
RNA_def_function(srna,
"is_registered_node_type",
"rna_Node_is_registered_node_type");
10867 func =
RNA_def_function(srna,
"input_template",
"rna_NodeInternal_input_template");
10878 func =
RNA_def_function(srna,
"output_template",
"rna_NodeInternal_output_template");
10894 const auto define = [&](
const char *base_name,
10895 const char *struct_name,
10910 define(
"NodeInternal",
"NodeFrame",
def_frame);
10911 define(
"NodeInternal",
"NodeGroup",
def_group);
10914 define(
"NodeInternal",
"NodeReroute",
def_reroute);
10916 define (
"NodeInternal",
"NodeComment",
def_comment);
10921 define(
"NodeInternal",
"NodeEnableOutput");
10923 define(
"NodeInternal",
"NodeGetBundleItem");
10924 define(
"NodeInternal",
"NodeGetNestedBundlePaths");
10925 define(
"NodeInternal",
"NodeJoinBundle");
10927 define(
"NodeInternal",
"NodeStoreBundleItem");
10929 define(
"ShaderNode",
"ShaderNodeAddShader");
10932 define(
"ShaderNode",
"ShaderNodeBackground");
10933 define(
"ShaderNode",
"ShaderNodeBevel",
def_sh_bevel);
10934 define(
"ShaderNode",
"ShaderNodeBlackbody");
10935 define(
"ShaderNode",
"ShaderNodeBrightContrast");
10936 define(
"ShaderNode",
"ShaderNodeBsdfAnisotropic",
def_glossy);
10937 define(
"ShaderNode",
"ShaderNodeBsdfDiffuse");
10938 define(
"ShaderNode",
"ShaderNodeBsdfGlass",
def_glass);
10939 define(
"ShaderNode",
"ShaderNodeBsdfHair",
def_hair);
10941 define(
"ShaderNode",
"ShaderNodeBsdfMetallic",
def_metallic);
10942 define(
"ShaderNode",
"ShaderNodeBsdfPrincipled",
def_principled);
10943 define(
"ShaderNode",
"ShaderNodeBsdfRayPortal");
10944 define(
"ShaderNode",
"ShaderNodeBsdfRefraction",
def_refraction);
10945 define(
"ShaderNode",
"ShaderNodeBsdfSheen",
def_sheen);
10946 define(
"ShaderNode",
"ShaderNodeBsdfToon",
def_toon);
10947 define(
"ShaderNode",
"ShaderNodeBsdfTranslucent");
10948 define(
"ShaderNode",
"ShaderNodeBsdfTransparent");
10949 define(
"ShaderNode",
"ShaderNodeBump",
def_sh_bump);
10950 define(
"ShaderNode",
"ShaderNodeCameraData");
10951 define(
"ShaderNode",
"ShaderNodeClamp",
def_clamp);
10953 define(
"ShaderNode",
"ShaderNodeCombineXYZ");
10955 define(
"ShaderNode",
"ShaderNodeEeveeSpecular");
10956 define(
"ShaderNode",
"ShaderNodeEmission");
10958 define(
"ShaderNode",
"ShaderNodeFresnel");
10959 define(
"ShaderNode",
"ShaderNodeGamma");
10960 define(
"ShaderNode",
"ShaderNodeHairInfo");
10961 define(
"ShaderNode",
"ShaderNodeHoldout");
10962 define(
"ShaderNode",
"ShaderNodeHueSaturation");
10963 define(
"ShaderNode",
"ShaderNodeInvert");
10964 define(
"ShaderNode",
"ShaderNodeLayerWeight");
10965 define(
"ShaderNode",
"ShaderNodeLightAccumulation");
10967 define(
"ShaderNode",
"ShaderNodeLightFalloff");
10968 define(
"ShaderNode",
"ShaderNodeLightInfo");
10969 define(
"ShaderNode",
"ShaderNodeLightIterInternalInput");
10970 define(
"ShaderNode",
"ShaderNodeLightIterInternalOutput");
10971 define(
"ShaderNode",
"ShaderNodeLightPath");
10974 define(
"ShaderNode",
"ShaderNodeMath",
def_math);
10975 define(
"ShaderNode",
"ShaderNodeMix",
def_sh_mix);
10976 define(
"ShaderNode",
"ShaderNodeMixRGB",
def_mix_rgb);
10977 define(
"ShaderNode",
"ShaderNodeMixShader");
10978 define(
"ShaderNode",
"ShaderNodeNewGeometry");
10979 define(
"ShaderNode",
"ShaderNodeNormal");
10981 define(
"ShaderNode",
"ShaderNodeObjectInfo");
10983 define(
"ShaderNode",
"ShaderNodeOutputLight",
def_sh_output);
10985 define(
"ShaderNode",
"ShaderNodeOutputMaterial",
def_sh_output);
10986 define(
"ShaderNode",
"ShaderNodeOutputWorld",
def_sh_output);
10987 define(
"ShaderNode",
"ShaderNodeParticleInfo");
10988 define(
"ShaderNode",
"ShaderNodePointInfo");
10991 define(
"ShaderNode",
"ShaderNodeRGB");
10993 define(
"ShaderNode",
"ShaderNodeRGBToBW");
10996 define(
"ShaderNode",
"ShaderNodeSeparateXYZ");
10997 define(
"ShaderNode",
"ShaderNodeShaderToRGB");
10998 define(
"ShaderNode",
"ShaderNodeShadowRaycast");
10999 define(
"ShaderNode",
"ShaderNodeSqueeze");
11017 define(
"ShaderNode",
"ShaderNodeUVMap",
def_sh_uvmap);
11019 define(
"ShaderNode",
"ShaderNodeValue");
11026 define(
"ShaderNode",
"ShaderNodeVolumeAbsorption");
11027 define(
"ShaderNode",
"ShaderNodeVolumeInfo");
11028 define(
"ShaderNode",
"ShaderNodeVolumePrincipled");
11029 define(
"ShaderNode",
"ShaderNodeVolumeScatter",
def_scatter);
11031 define(
"ShaderNode",
"ShaderNodeWavelength");
11034 define(
"CompositorNode",
"CompositorNodeAlphaOver");
11035 define(
"CompositorNode",
"CompositorNodeAntiAliasing");
11036 define(
"CompositorNode",
"CompositorNodeBilateralblur");
11037 define(
"CompositorNode",
"CompositorNodeBlankImage");
11038 define(
"CompositorNode",
"CompositorNodeBlur");
11039 define(
"CompositorNode",
"CompositorNodeBokehBlur");
11040 define(
"CompositorNode",
"CompositorNodeBokehImage");
11041 define(
"CompositorNode",
"CompositorNodeBoxMask");
11042 define(
"CompositorNode",
"CompositorNodeBrightContrast");
11043 define(
"CompositorNode",
"CompositorNodeChannelMatte");
11044 define(
"CompositorNode",
"CompositorNodeChromaMatte");
11046 define(
"CompositorNode",
"CompositorNodeColorCorrection");
11047 define(
"CompositorNode",
"CompositorNodeColorMatte");
11048 define(
"CompositorNode",
"CompositorNodeColorSpill");
11049 define(
"CompositorNode",
"CompositorNodeConvolve");
11053 define(
"CompositorNode",
"CompositorNodeCornerPin");
11054 define(
"CompositorNode",
"CompositorNodeCrop");
11057 define(
"CompositorNode",
"CompositorNodeCurveRGB",
def_rgb_curve);
11058 define(
"CompositorNode",
"CompositorNodeDBlur");
11060 define(
"CompositorNode",
"CompositorNodeDenoise");
11061 define(
"CompositorNode",
"CompositorNodeDespeckle");
11062 define(
"CompositorNode",
"CompositorNodeDiffMatte");
11063 define(
"CompositorNode",
"CompositorNodeDilateErode");
11064 define(
"CompositorNode",
"CompositorNodeDisplace");
11065 define(
"CompositorNode",
"CompositorNodeDistanceMatte");
11066 define(
"CompositorNode",
"CompositorNodeDoubleEdgeMask");
11067 define(
"CompositorNode",
"CompositorNodeEllipseMask");
11068 define(
"CompositorNode",
"CompositorNodeExposure");
11069 define(
"CompositorNode",
"CompositorNodeFilter");
11070 define(
"CompositorNode",
"CompositorNodeFlip");
11071 define(
"CompositorNode",
"CompositorNodeGamma");
11072 define(
"CompositorNode",
"CompositorNodeGlare");
11074 define(
"CompositorNode",
"CompositorNodeHueSat");
11075 define(
"CompositorNode",
"CompositorNodeIDMask");
11076 define(
"CompositorNode",
"CompositorNodeImage",
def_cmp_image);
11077 define(
"CompositorNode",
"CompositorNodeImageCoordinates");
11078 define(
"CompositorNode",
"CompositorNodeImageInfo");
11079 define(
"CompositorNode",
"CompositorNodeInpaint");
11080 define(
"CompositorNode",
"CompositorNodeInvert");
11081 define(
"CompositorNode",
"CompositorNodeKeying");
11083 define(
"CompositorNode",
"CompositorNodeKuwahara");
11084 define(
"CompositorNode",
"CompositorNodeLensdist");
11085 define(
"CompositorNode",
"CompositorNodeLevels");
11086 define(
"CompositorNode",
"CompositorNodeLumaMatte");
11087 define(
"CompositorNode",
"CompositorNodeMapUV");
11088 define(
"CompositorNode",
"CompositorNodeMask",
def_cmp_mask);
11091 define(
"CompositorNode",
"CompositorNodeNormal");
11092 define(
"CompositorNode",
"CompositorNodeNormalize");
11094 define(
"CompositorNode",
"CompositorNodePixelate");
11096 define(
"CompositorNode",
"CompositorNodePosterize");
11097 define(
"CompositorNode",
"CompositorNodePremulKey");
11098 define(
"CompositorNode",
"CompositorNodeRelativeToPixel");
11099 define(
"CompositorNode",
"CompositorNodeRGB");
11100 define(
"CompositorNode",
"CompositorNodeRGBToBW");
11102 define(
"CompositorNode",
"CompositorNodeRotate");
11103 define(
"CompositorNode",
"CompositorNodeScale");
11104 define(
"CompositorNode",
"CompositorNodeSceneTime");
11106 define(
"CompositorNode",
"CompositorNodeSetAlpha");
11107 define(
"CompositorNode",
"CompositorNodeMaskToSDF");
11108 define(
"CompositorNode",
"CompositorNodeSplit");
11110 define(
"CompositorNode",
"CompositorNodeSequencerStripInfo");
11111 define(
"CompositorNode",
"CompositorNodeStringToImage");
11112 define(
"CompositorNode",
"CompositorNodeSwitch");
11113 define(
"CompositorNode",
"CompositorNodeSwitchView");
11114 define(
"CompositorNode",
"CompositorNodeTime",
def_time);
11115 define(
"CompositorNode",
"CompositorNodeTonemap");
11117 define(
"CompositorNode",
"CompositorNodeTransform");
11118 define(
"CompositorNode",
"CompositorNodeTranslate");
11119 define(
"CompositorNode",
"CompositorNodeVecBlur");
11120 define(
"CompositorNode",
"CompositorNodeViewer",
def_cmp_viewer);
11121 define(
"CompositorNode",
"CompositorNodeZcombine");
11123 define(
"TextureNode",
"TextureNodeAt");
11125 define(
"TextureNode",
"TextureNodeChecker");
11127 define(
"TextureNode",
"TextureNodeCompose");
11128 define(
"TextureNode",
"TextureNodeCoordinates");
11129 define(
"TextureNode",
"TextureNodeCurveRGB",
def_rgb_curve);
11130 define(
"TextureNode",
"TextureNodeCurveTime",
def_time);
11131 define(
"TextureNode",
"TextureNodeDecompose");
11132 define(
"TextureNode",
"TextureNodeDistance");
11133 define(
"TextureNode",
"TextureNodeHueSaturation");
11135 define(
"TextureNode",
"TextureNodeInvert");
11136 define(
"TextureNode",
"TextureNodeMath",
def_math);
11137 define(
"TextureNode",
"TextureNodeMixRGB",
def_mix_rgb);
11139 define(
"TextureNode",
"TextureNodeRGBToBW");
11140 define(
"TextureNode",
"TextureNodeRotate");
11141 define(
"TextureNode",
"TextureNodeScale");
11143 define(
"TextureNode",
"TextureNodeTexBlend");
11144 define(
"TextureNode",
"TextureNodeTexClouds");
11145 define(
"TextureNode",
"TextureNodeTexDistNoise");
11146 define(
"TextureNode",
"TextureNodeTexMagic");
11147 define(
"TextureNode",
"TextureNodeTexMarble");
11148 define(
"TextureNode",
"TextureNodeTexMusgrave");
11149 define(
"TextureNode",
"TextureNodeTexNoise");
11150 define(
"TextureNode",
"TextureNodeTexStucci");
11151 define(
"TextureNode",
"TextureNodeTexture",
def_texture);
11152 define(
"TextureNode",
"TextureNodeTexVoronoi");
11153 define(
"TextureNode",
"TextureNodeTexWood");
11154 define(
"TextureNode",
"TextureNodeTranslate");
11155 define(
"TextureNode",
"TextureNodeValToNor");
11156 define(
"TextureNode",
"TextureNodeValToRGB",
def_colorramp);
11157 define(
"TextureNode",
"TextureNodeViewer");
11159 define(
"FunctionNode",
"FunctionNodeAlignEulerToVector");
11160 define(
"FunctionNode",
"FunctionNodeAlignRotationToVector");
11161 define(
"FunctionNode",
"FunctionNodeAxesToRotation");
11162 define(
"FunctionNode",
"FunctionNodeAxisAngleToRotation");
11163 define(
"FunctionNode",
"FunctionNodeBitMath");
11164 define(
"FunctionNode",
"FunctionNodeBooleanMath");
11165 define(
"FunctionNode",
"FunctionNodeCombineColor");
11166 define(
"FunctionNode",
"FunctionNodeCombineMatrix");
11167 define(
"FunctionNode",
"FunctionNodeCombineTransform");
11168 define(
"FunctionNode",
"FunctionNodeCompare");
11169 define(
"FunctionNode",
"FunctionNodeEulerToRotation");
11170 define(
"FunctionNode",
"FunctionNodeFindInString");
11173 define(
"FunctionNode",
"FunctionNodeGetVectorComponent");
11174 define(
"FunctionNode",
"FunctionNodeHashValue");
11181 define(
"FunctionNode",
"FunctionNodeInputSpecialCharacters");
11184 define(
"FunctionNode",
"FunctionNodeIntegerMath");
11185 define(
"FunctionNode",
"FunctionNodeInvertMatrix");
11186 define(
"FunctionNode",
"FunctionNodeInvertRotation");
11187 define(
"FunctionNode",
"FunctionNodeMatchString");
11188 define(
"FunctionNode",
"FunctionNodeMatrixDeterminant");
11189 define(
"FunctionNode",
"FunctionNodeMatrixMultiply");
11190 define(
"FunctionNode",
"FunctionNodeMatrixSVD");
11191 define(
"FunctionNode",
"FunctionNodeProjectPoint");
11192 define(
"FunctionNode",
"FunctionNodeQuaternionToRotation");
11194 define(
"FunctionNode",
"FunctionNodeReplaceString");
11195 define(
"FunctionNode",
"FunctionNodeReverseString");
11197 define(
"FunctionNode",
"FunctionNodeRotateRotation");
11198 define(
"FunctionNode",
"FunctionNodeRotateVector");
11199 define(
"FunctionNode",
"FunctionNodeRotationToAxisAngle");
11200 define(
"FunctionNode",
"FunctionNodeRotationToEuler");
11201 define(
"FunctionNode",
"FunctionNodeRotationToQuaternion");
11202 define(
"FunctionNode",
"FunctionNodeSeparateColor");
11203 define(
"FunctionNode",
"FunctionNodeSeparateMatrix");
11204 define(
"FunctionNode",
"FunctionNodeSeparateTransform");
11205 define(
"FunctionNode",
"FunctionNodeSetStringCase");
11206 define(
"FunctionNode",
"FunctionNodeSliceString");
11207 define(
"FunctionNode",
"FunctionNodeSplitString");
11208 define(
"FunctionNode",
"FunctionNodeStringLength");
11209 define(
"FunctionNode",
"FunctionNodeStringToValue");
11210 define(
"FunctionNode",
"FunctionNodeTransformDirection");
11211 define(
"FunctionNode",
"FunctionNodeTransformPoint");
11212 define(
"FunctionNode",
"FunctionNodeTransposeMatrix");
11213 define(
"FunctionNode",
"FunctionNodeTrimString");
11214 define(
"FunctionNode",
"FunctionNodeValueToString");
11216 define(
"GeometryNode",
"GeometryNodeAccumulateField");
11217 define(
"GeometryNode",
"GeometryNodeApplySimulatedData");
11218 define(
"GeometryNode",
"GeometryNodeAttributeDomainSize");
11219 define(
"GeometryNode",
"GeometryNodeAttributeStatistic");
11221 define(
"GeometryNode",
"GeometryNodeBlurAttribute");
11222 define(
"GeometryNode",
"GeometryNodeBoneInfo");
11223 define(
"GeometryNode",
"GeometryNodeBoundBox");
11224 define(
"GeometryNode",
"GeometryNodeCameraInfo");
11227 define(
"GeometryNode",
"GeometryNodeClusterByConnected");
11228 define(
"GeometryNode",
"GeometryNodeClusterByDistance");
11229 define(
"GeometryNode",
"GeometryNodeCollectionChildren");
11230 define(
"GeometryNode",
"GeometryNodeCollectionInfo");
11231 define(
"GeometryNode",
"GeometryNodeConstructCurves");
11232 define(
"GeometryNode",
"GeometryNodeConvexHull");
11233 define(
"GeometryNode",
"GeometryNodeCornersOfEdge");
11234 define(
"GeometryNode",
"GeometryNodeCornersOfFace");
11235 define(
"GeometryNode",
"GeometryNodeCornersOfVertex");
11236 define(
"GeometryNode",
"GeometryNodeCubeGridTopology");
11237 define(
"GeometryNode",
"GeometryNodeCurveArc");
11238 define(
"GeometryNode",
"GeometryNodeCurveEndpointSelection");
11240 define(
"GeometryNode",
"GeometryNodeCurveLength");
11241 define(
"GeometryNode",
"GeometryNodeCurveOfPoint");
11242 define(
"GeometryNode",
"GeometryNodeCurvePrimitiveBezierSegment");
11243 define(
"GeometryNode",
"GeometryNodeCurvePrimitiveCircle");
11244 define(
"GeometryNode",
"GeometryNodeCurvePrimitiveLine");
11245 define(
"GeometryNode",
"GeometryNodeCurvePrimitiveQuadrilateral");
11246 define(
"GeometryNode",
"GeometryNodeCurveQuadraticBezier");
11248 define(
"GeometryNode",
"GeometryNodeCurveSpiral");
11249 define(
"GeometryNode",
"GeometryNodeCurveSplineType");
11250 define(
"GeometryNode",
"GeometryNodeCurveStar");
11251 define(
"GeometryNode",
"GeometryNodeCurvesToGreasePencil");
11252 define(
"GeometryNode",
"GeometryNodeCurveToMesh");
11253 define(
"GeometryNode",
"GeometryNodeCurveToPoints");
11254 define(
"GeometryNode",
"GeometryNodeDeformCurvesOnSurface");
11255 define(
"GeometryNode",
"GeometryNodeDeleteGeometry");
11256 define(
"GeometryNode",
"GeometryNodeDistributePointsInGrid");
11257 define(
"GeometryNode",
"GeometryNodeDistributePointsInVolume");
11259 define(
"GeometryNode",
"GeometryNodeDualMesh");
11260 define(
"GeometryNode",
"GeometryNodeDuplicateElements");
11261 define(
"GeometryNode",
"GeometryNodeEdgePathsToCurves");
11262 define(
"GeometryNode",
"GeometryNodeEdgePathsToSelection");
11263 define(
"GeometryNode",
"GeometryNodeEdgesOfCorner");
11264 define(
"GeometryNode",
"GeometryNodeEdgesOfVertex");
11265 define(
"GeometryNode",
"GeometryNodeEdgesToFaceGroups");
11266 define(
"GeometryNode",
"GeometryNodeExtrudeMesh");
11267 define(
"GeometryNode",
"GeometryNodeFaceOfCorner");
11268 define(
"GeometryNode",
"GeometryNodeFieldAtIndex");
11269 define(
"GeometryNode",
"GeometryNodeFieldAverage");
11270 define(
"GeometryNode",
"GeometryNodeFieldMinAndMax");
11271 define(
"GeometryNode",
"GeometryNodeFieldOnDomain");
11274 define(
"GeometryNode",
"GeometryNodeFieldVariance");
11275 define(
"GeometryNode",
"GeometryNodeFillCurve");
11276 define(
"GeometryNode",
"GeometryNodeFilletCurve");
11277 define(
"GeometryNode",
"GeometryNodeFilterList");
11278 define(
"GeometryNode",
"GeometryNodeFlipFaces");
11281 define(
"GeometryNode",
"GeometryNodeGeometryToInstance");
11282 define(
"GeometryNode",
"GeometryNodeGetAttributeNames");
11283 define(
"GeometryNode",
"GeometryNodeGetGeometryBundle");
11284 define(
"GeometryNode",
"GeometryNodeGetGeometryComponent");
11285 define(
"GeometryNode",
"GeometryNodeGetGridNames");
11286 define(
"GeometryNode",
"GeometryNodeGetNamedGrid");
11287 define(
"GeometryNode",
"GeometryNodeGizmoDial");
11288 define(
"GeometryNode",
"GeometryNodeGizmoLinear");
11290 define(
"GeometryNode",
"GeometryNodeGreasePencilColor");
11291 define(
"GeometryNode",
"GeometryNodeGreasePencilDrawTime");
11292 define(
"GeometryNode",
"GeometryNodeGreasePencilFillID");
11293 define(
"GeometryNode",
"GeometryNodeGreasePencilOpacity");
11294 define(
"GeometryNode",
"GeometryNodeGreasePencilStrokeSoftness");
11295 define(
"GeometryNode",
"GeometryNodeGreasePencilStrokeVisibility");
11296 define(
"GeometryNode",
"GeometryNodeGreasePencilToCurves");
11297 define(
"GeometryNode",
"GeometryNodeGridAdvect");
11298 define(
"GeometryNode",
"GeometryNodeGridCurl");
11299 define(
"GeometryNode",
"GeometryNodeGridDeactivateVoxels");
11300 define(
"GeometryNode",
"GeometryNodeGridDilateAndErode");
11301 define(
"GeometryNode",
"GeometryNodeGridDivergence");
11302 define(
"GeometryNode",
"GeometryNodeGridGradient");
11303 define(
"GeometryNode",
"GeometryNodeGridInfo");
11304 define(
"GeometryNode",
"GeometryNodeGridLaplacian");
11305 define(
"GeometryNode",
"GeometryNodeGridMean");
11306 define(
"GeometryNode",
"GeometryNodeGridMedian");
11307 define(
"GeometryNode",
"GeometryNodeGridPrune");
11308 define(
"GeometryNode",
"GeometryNodeGridClip");
11309 define(
"GeometryNode",
"GeometryNodeGridSolvePoisson");
11310 define(
"GeometryNode",
"GeometryNodeGridToMesh");
11311 define(
"GeometryNode",
"GeometryNodeGridToPoints");
11312 define(
"GeometryNode",
"GeometryNodeGridTopologyBoolean");
11313 define(
"GeometryNode",
"GeometryNodeGridVoxelize");
11314 define(
"GeometryNode",
"GeometryNodeImageInfo");
11316 define(
"GeometryNode",
"GeometryNodeImportCSV");
11317 define(
"GeometryNode",
"GeometryNodeImportOBJ");
11318 define(
"GeometryNode",
"GeometryNodeImportPLY");
11319 define(
"GeometryNode",
"GeometryNodeImportSPZ");
11320 define(
"GeometryNode",
"GeometryNodeImportSTL");
11321 define(
"GeometryNode",
"GeometryNodeImportText");
11322 define(
"GeometryNode",
"GeometryNodeImportVDB");
11323 define(
"GeometryNode",
"GeometryNodeIndexOfNearest");
11326 define(
"GeometryNode",
"GeometryNodeInputActiveCamera");
11328 define(
"GeometryNode",
"GeometryNodeInputCurveHandlePositions");
11329 define(
"GeometryNode",
"GeometryNodeInputCurveTilt");
11330 define(
"GeometryNode",
"GeometryNodeInputEdgeSmooth");
11332 define(
"GeometryNode",
"GeometryNodeInputID");
11333 define(
"GeometryNode",
"GeometryNodeInputImage",
def_geo_image);
11334 define(
"GeometryNode",
"GeometryNodeInputIndex");
11335 define(
"GeometryNode",
"GeometryNodeInputInstanceBounds");
11336 define(
"GeometryNode",
"GeometryNodeInputInstanceReference");
11337 define(
"GeometryNode",
"GeometryNodeInputInstanceRotation");
11338 define(
"GeometryNode",
"GeometryNodeInputInstanceScale");
11340 define(
"GeometryNode",
"GeometryNodeInputMaterialIndex");
11341 define(
"GeometryNode",
"GeometryNodeInputMeshEdgeAngle");
11342 define(
"GeometryNode",
"GeometryNodeInputMeshEdgeNeighbors");
11343 define(
"GeometryNode",
"GeometryNodeInputMeshEdgeVertices");
11344 define(
"GeometryNode",
"GeometryNodeInputMeshFaceArea");
11345 define(
"GeometryNode",
"GeometryNodeInputMeshFaceIsPlanar");
11346 define(
"GeometryNode",
"GeometryNodeInputMeshFaceNeighbors");
11347 define(
"GeometryNode",
"GeometryNodeInputMeshIsland");
11348 define(
"GeometryNode",
"GeometryNodeInputMeshVertexNeighbors");
11349 define(
"GeometryNode",
"GeometryNodeInputNamedAttribute");
11350 define(
"GeometryNode",
"GeometryNodeInputNamedLayerSelection");
11353 define(
"GeometryNode",
"GeometryNodeInputPosition");
11354 define(
"GeometryNode",
"GeometryNodeInputRadius");
11355 define(
"GeometryNode",
"GeometryNodeInputSceneTime");
11356 define(
"GeometryNode",
"GeometryNodeInputShadeSmooth");
11357 define(
"GeometryNode",
"GeometryNodeInputShortestEdgePaths");
11358 define(
"GeometryNode",
"GeometryNodeInputSplineCyclic");
11359 define(
"GeometryNode",
"GeometryNodeInputSplineResolution");
11360 define(
"GeometryNode",
"GeometryNodeInputTangent");
11361 define(
"GeometryNode",
"GeometryNodeInputVoxelIndex");
11362 define(
"GeometryNode",
"GeometryNodeInstanceOnPoints");
11363 define(
"GeometryNode",
"GeometryNodeInstancesToPoints");
11364 define(
"GeometryNode",
"GeometryNodeInstanceTransform");
11365 define(
"GeometryNode",
"GeometryNodeInterpolateCurves");
11366 define(
"GeometryNode",
"GeometryNodeIsViewport");
11367 define(
"GeometryNode",
"GeometryNodeJoinGeometry");
11368 define(
"GeometryNode",
"GeometryNodeListGetItem");
11369 define(
"GeometryNode",
"GeometryNodeListLength");
11370 define(
"GeometryNode",
"GeometryNodeGeometryMaterials");
11371 define(
"GeometryNode",
"GeometryNodeMaterialSelection");
11373 define(
"GeometryNode",
"GeometryNodeMergeByDistance");
11375 define(
"GeometryNode",
"GeometryNodeMergePoints");
11376 define(
"GeometryNode",
"GeometryNodeMeshBevel");
11377 define(
"GeometryNode",
"GeometryNodeMeshBoolean");
11378 define(
"GeometryNode",
"GeometryNodeMeshCircle");
11379 define(
"GeometryNode",
"GeometryNodeMeshCone");
11380 define(
"GeometryNode",
"GeometryNodeMeshCube");
11381 define(
"GeometryNode",
"GeometryNodeMeshCylinder");
11382 define(
"GeometryNode",
"GeometryNodeMeshFaceSetBoundaries");
11383 define(
"GeometryNode",
"GeometryNodeMeshGrid");
11384 define(
"GeometryNode",
"GeometryNodeMeshIcoSphere");
11385 define(
"GeometryNode",
"GeometryNodeMeshLine");
11386 define(
"GeometryNode",
"GeometryNodeMeshToCurve");
11387 define(
"GeometryNode",
"GeometryNodeMeshToDensityGrid");
11388 define(
"GeometryNode",
"GeometryNodeMeshToPoints");
11389 define(
"GeometryNode",
"GeometryNodeMeshToSDFGrid");
11390 define(
"GeometryNode",
"GeometryNodeMeshToVolume");
11391 define(
"GeometryNode",
"GeometryNodeMeshUVSphere");
11392 define(
"GeometryNode",
"GeometryNodeNURBSOrder");
11393 define(
"GeometryNode",
"GeometryNodeNURBSWeight");
11394 define(
"GeometryNode",
"GeometryNodeObjectInfo");
11395 define(
"GeometryNode",
"GeometryNodeOffsetCornerInFace");
11396 define(
"GeometryNode",
"GeometryNodeOffsetPointInCurve");
11397 define(
"GeometryNode",
"GeometryNodePoints");
11398 define(
"GeometryNode",
"GeometryNodePointsOfCurve");
11399 define(
"GeometryNode",
"GeometryNodePointsSetType");
11400 define(
"GeometryNode",
"GeometryNodePointsToCurves");
11401 define(
"GeometryNode",
"GeometryNodePointsToSDFGrid");
11402 define(
"GeometryNode",
"GeometryNodePointsToVertices");
11403 define(
"GeometryNode",
"GeometryNodePointsToVolume");
11404 define(
"GeometryNode",
"GeometryNodeProximity");
11406 define(
"GeometryNode",
"GeometryNodeRaycast");
11407 define(
"GeometryNode",
"GeometryNodeRealizeInstances");
11408 define(
"GeometryNode",
"GeometryNodeRemoveAttribute");
11409 define(
"GeometryNode",
"GeometryNodeRenameAttribute");
11412 define(
"GeometryNode",
"GeometryNodeReplaceMaterial");
11413 define(
"GeometryNode",
"GeometryNodeResampleCurve");
11414 define(
"GeometryNode",
"GeometryNodeReverseCurve");
11415 define(
"GeometryNode",
"GeometryNodeRotateInstances");
11417 define(
"GeometryNode",
"GeometryNodeSampleGrid");
11418 define(
"GeometryNode",
"GeometryNodeSampleGridIndex");
11420 define(
"GeometryNode",
"GeometryNodeSampleNearest");
11421 define(
"GeometryNode",
"GeometryNodeSampleNearestSurface");
11422 define(
"GeometryNode",
"GeometryNodeSampleSoundFrequencies");
11423 define(
"GeometryNode",
"GeometryNodeSampleUVSurface");
11424 define(
"GeometryNode",
"GeometryNodeScaleElements");
11425 define(
"GeometryNode",
"GeometryNodeScaleInstances");
11426 define(
"GeometryNode",
"GeometryNodeSDFGridBoolean");
11427 define(
"GeometryNode",
"GeometryNodeSDFGridFillet");
11428 define(
"GeometryNode",
"GeometryNodeSDFGridLaplacian");
11429 define(
"GeometryNode",
"GeometryNodeSDFGridMean");
11430 define(
"GeometryNode",
"GeometryNodeSDFGridMeanCurvature");
11431 define(
"GeometryNode",
"GeometryNodeSDFGridMedian");
11432 define(
"GeometryNode",
"GeometryNodeSDFGridOffset");
11433 define(
"GeometryNode",
"GeometryNodeSelfObject");
11434 define(
"GeometryNode",
"GeometryNodeSeparateComponents");
11435 define(
"GeometryNode",
"GeometryNodeSeparateGeometry");
11436 define(
"GeometryNode",
"GeometryNodeSetCurveHandlePositions");
11437 define(
"GeometryNode",
"GeometryNodeSetCurveNormal");
11438 define(
"GeometryNode",
"GeometryNodeSetCurveRadius");
11439 define(
"GeometryNode",
"GeometryNodeSetCurveTilt");
11440 define(
"GeometryNode",
"GeometryNodeSetGeometryBundle");
11441 define(
"GeometryNode",
"GeometryNodeSetGeometryName");
11444 define(
"GeometryNode",
"GeometryNodeSetGreasePencilSoftness");
11445 define(
"GeometryNode",
"GeometryNodeSetGridBackground");
11446 define(
"GeometryNode",
"GeometryNodeSetGridTransform");
11447 define(
"GeometryNode",
"GeometryNodeSetID");
11448 define(
"GeometryNode",
"GeometryNodeSetInstanceTransform");
11449 define(
"GeometryNode",
"GeometryNodeSetMaterial");
11450 define(
"GeometryNode",
"GeometryNodeSetMaterialIndex");
11451 define(
"GeometryNode",
"GeometryNodeSetMeshNormal");
11452 define(
"GeometryNode",
"GeometryNodeSetNURBSOrder");
11453 define(
"GeometryNode",
"GeometryNodeSetNURBSWeight");
11454 define(
"GeometryNode",
"GeometryNodeSetPointRadius");
11455 define(
"GeometryNode",
"GeometryNodeSetPosition");
11456 define(
"GeometryNode",
"GeometryNodeSetShadeSmooth");
11457 define(
"GeometryNode",
"GeometryNodeSetSplineCyclic");
11458 define(
"GeometryNode",
"GeometryNodeSetSplineResolution");
11461 define(
"GeometryNode",
"GeometryNodeSortElements");
11462 define(
"GeometryNode",
"GeometryNodeSortList");
11463 define(
"GeometryNode",
"GeometryNodeSplineLength");
11464 define(
"GeometryNode",
"GeometryNodeSplineParameter");
11465 define(
"GeometryNode",
"GeometryNodeSplitEdges");
11466 define(
"GeometryNode",
"GeometryNodeSplitToInstances");
11467 define(
"GeometryNode",
"GeometryNodeStoreNamedAttribute");
11468 define(
"GeometryNode",
"GeometryNodeStoreNamedGrid");
11469 define(
"GeometryNode",
"GeometryNodeStringJoin");
11470 define(
"GeometryNode",
"GeometryNodeStringToCurves");
11471 define(
"GeometryNode",
"GeometryNodeSubdivideCurve");
11472 define(
"GeometryNode",
"GeometryNodeSubdivideMesh");
11473 define(
"GeometryNode",
"GeometryNodeSubdivisionSurface");
11474 define(
"GeometryNode",
"GeometryNodeSwitch");
11475 define(
"GeometryNode",
"GeometryNodeTagFilter");
11476 define(
"GeometryNode",
"GeometryNodeTool3DCursor");
11477 define(
"GeometryNode",
"GeometryNodeToolActiveElement");
11478 define(
"GeometryNode",
"GeometryNodeToolFaceSet");
11479 define(
"GeometryNode",
"GeometryNodeToolMousePosition");
11480 define(
"GeometryNode",
"GeometryNodeToolSelection");
11481 define(
"GeometryNode",
"GeometryNodeToolSetFaceSet");
11482 define(
"GeometryNode",
"GeometryNodeToolSetSelection");
11483 define(
"GeometryNode",
"GeometryNodeTransform");
11484 define(
"GeometryNode",
"GeometryNodeTranslateInstances");
11485 define(
"GeometryNode",
"GeometryNodeTransferAttributes");
11486 define(
"GeometryNode",
"GeometryNodeTriangulate");
11487 define(
"GeometryNode",
"GeometryNodeTrimCurve");
11488 define(
"GeometryNode",
"GeometryNodeUVPackIslands");
11489 define(
"GeometryNode",
"GeometryNodeUVTangent");
11490 define(
"GeometryNode",
"GeometryNodeUVUnwrap");
11491 define(
"GeometryNode",
"GeometryNodeVertexOfCorner");
11493 define(
"GeometryNode",
"GeometryNodeViewportTransform");
11494 define(
"GeometryNode",
"GeometryNodeVolumeCube");
11495 define(
"GeometryNode",
"GeometryNodeVolumeToMesh");
11496 define(
"GeometryNode",
"GeometryNodeWarning");
11497 define(
"GeometryNode",
"GeometryNodeXPBDSolver");
11501 define(
"ShaderNode",
"ShaderNodeGroup",
def_group);
11502 define(
"CompositorNode",
"CompositorNodeGroup",
def_group);
11503 define(
"TextureNode",
"TextureNodeGroup",
def_group);
11504 define(
"GeometryNode",
"GeometryNodeGroup",
def_group);
11533 "ShaderNodeCustomGroup",
11535 "Shader Custom Group",
11536 "Custom Shader Group Node for Python nodes",
11537 "rna_ShaderNodeCustomGroup_register");
11539 "CompositorNodeCustomGroup",
11541 "Compositor Custom Group",
11542 "Custom Compositor Group Node for Python nodes",
11543 "rna_CompositorNodeCustomGroup_register");
11548 "Base node type for custom registered node group types",
11549 "rna_NodeCustomGroup_register");
11551 "GeometryNodeCustomGroup",
11553 "Geometry Custom Group",
11554 "Custom Geometry Group Node for Python nodes",
11555 "rna_GeometryNodeCustomGroup_register");
11559# undef NODE_DEFINE_SUBTYPES
#define IMA_SIGNAL_SRC_CHANGE
#define NODE_CLASS_OUTPUT
#define NODE_CUSTOM_GROUP
#define SH_NODE_TEX_IMAGE
#define CMP_NODE_CRYPTOMATTE
#define SH_NODE_MAP_RANGE
#define SH_NODE_TEX_ENVIRONMENT
#define CMP_NODE_OUTPUT_FILE
#define BLI_SCOPED_DEFER(function_to_defer)
#define SNPRINTF(dst, format,...)
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_COLOR_MANAGEMENT
#define CTX_N_(context, msgid)
#define BLT_I18NCONTEXT_ID_NODETREE
#define BLT_I18NCONTEXT_ID_IMAGE
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
#define BLT_I18NCONTEXT_UNIT
#define BLT_I18NCONTEXT_ID_MOVIECLIP
#define BLT_I18NCONTEXT_ID_TEXTURE
#define ID_BLEND_PATH_FROM_GLOBAL(_id)
#define SHD_SHEEN_ASHIKHMIN
#define SHD_SHEEN_MICROFIBER
Object is a sort of wrapper for general info.
#define RNA_MAX_ARRAY_DIMENSION
#define RNA_ENUM_ITEM_SEPR
#define RNA_ENUM_ITEM_HEADING(name, description)
#define ND_NODE_ASSET_DATA
#define STREQLEN(a, b, n)
#define SET_FLAG_FROM_TEST(value, test, flag)
SIMD_FORCE_INLINE btScalar length() const
Return the length of the vector.
constexpr IndexRange index_range() const
constexpr bool contains(int64_t value) const
StringRefNull copy_string(StringRef str)
const char * c_str() const
StringRefNull ref() const
std::unique_ptr< LoggedZoneGraphs > logged_zone_graphs
std::shared_ptr< const nodes::GeometryNodesLazyFunctionGraphInfo > geometry_nodes_lazy_function_graph_info
void copy_unsafe(char *dst) const
constexpr const char * c_str() const
#define storage(slot, qualifiers)
void free(Subdiv *subdiv)
NodeColorTag node_color_tag(const bNode &node)
void node_tree_set_output(bNodeTree &ntree)
const bNodeZoneType * zone_type_by_node_type(const int node_type)
bool node_is_parent_and_child(const bNode &parent, const bNode &child)
void node_attach_node(bNodeTree &ntree, bNode &node, bNode &parent)
bool node_tree_is_registered(const bNodeTree &ntree)
bNodeTreeType * node_tree_type_find(StringRef idname)
Span< bNodeSocketType * > node_socket_types_get()
void node_tag_update_id(bNode &node)
void node_remove_node(Main *bmain, bNodeTree &ntree, bNode &node, bool do_id_user, bool remove_animation=true)
bNode * node_get_active(bNodeTree &ntree)
void node_remove_socket(bNodeTree &ntree, bNode &node, bNodeSocket &sock)
void node_update_asset_metadata(bNodeTree &node_tree)
bool node_group_poll(const bNodeTree *nodetree, const bNodeTree *grouptree, const char **r_disabled_hint)
void node_register_type(bNodeType &ntype)
const char * node_socket_translation_context(const bNodeSocket &sock)
void node_remove_link(bNodeTree *ntree, bNodeLink &link)
bNode * node_add_node(const bContext *C, bNodeTree &ntree, UString idname, std::optional< int > unique_identifier=std::nullopt)
void node_tree_type_add(bNodeTreeType &nt)
bNodeType * node_type_find(UString idname)
int node_count_socket_links(const bNodeTree &ntree, const bNodeSocket &sock)
bNode * node_find_node_try(bNodeTree &ntree, bNodeSocket &socket)
void node_tree_type_free_link(const bNodeTreeType &nt)
bool node_set_selected(bNode &node, bool select)
bNodeSocket * node_add_socket(bNodeTree &ntree, bNode &node, eNodeSocketInOut in_out, StringRefNull idname, StringRefNull identifier, StringRefNull name)
bool node_tree_contains_tree(const bNodeTree &tree_to_search_in, const bNodeTree &tree_to_search_for)
void node_detach_node(bNodeTree &ntree, bNode &node)
bNodeSocketType * node_socket_type_find(StringRef idname)
bNodeLink & node_add_link(bNodeTree &ntree, bNode &fromnode, bNodeSocket &fromsock, bNode &tonode, bNodeSocket &tosock)
UString node_type_find_alias(UString alias)
bNodeSocketType * node_socket_type_find_static(int type, int subtype=0)
StringRefNull node_socket_type_label(const bNodeSocketType &stype)
Span< bNodeTreeType * > node_tree_types_get()
bNodeSocket * node_find_socket(bNode &node, eNodeSocketInOut in_out, UString identifier)
void node_unregister_type(bNodeType &ntype)
std::optional< StringRefNull > node_static_socket_type(int type, int subtype, std::optional< int > dimensions=std::nullopt)
void node_remove_socket_links(bNodeTree &ntree, bNodeSocket &sock)
void node_set_active(bNodeTree &ntree, bNode &node)
float2 node_dimensions_get(const bNode &node)
int node_socket_link_limit(const bNodeSocket &sock)
void node_clear_active(bNodeTree &ntree)
void node_unique_name(bNodeTree &ntree, bNode &node)
bool node_link_is_hidden(const bNodeLink &link)
void node_type_base_custom(bNodeType &ntype, StringRefNull idname, StringRefNull name, StringRefNull enum_name, short nclass)
void remove_index(T **items, int *items_num, int *active_index, const int index, void(*destruct_item)(T *))
void clear(T **items, int *items_num, int *active_index, void(*destruct_item)(T *))
void move_index(T *items, const int items_num, const int from_index, const int to_index)
bool generic_attribute_type_supported(const EnumPropertyItem &item)
void set_item_name_and_make_unique(bNode &node, typename Accessor::ItemT &item, const char *value)
Accessor::ItemT * add_item_with_name(bNode &node, const char *name)
Accessor::ItemT * add_item(bNode &node)
bNode * find_node_by_item(bNodeTree &ntree, const typename Accessor::ItemT &item)
Accessor::ItemT * add_item_with_socket_type_and_name(bNodeTree &ntree, bNode &node, const eNodeSocketDatatype socket_type, const char *name, std::optional< int > dimensions=std::nullopt)
bool socket_type_supports_fields(const eNodeSocketDatatype socket_type)
bool socket_type_supports_grids(const eNodeSocketDatatype socket_type)
void refresh_for_srna_unregister(Main *bmain, StructRNA *srna_to_unreg)
@ SHD_PHASE_HENYEY_GREENSTEIN
@ SHD_PHASE_FOURNIER_FORAND
static void rna_def_nodes(BlenderRNA *brna)
static void def_colorramp(BlenderRNA *, StructRNA *srna)
void WM_main_add_notifier(uint type, void *reference)
CompositorNodeAssetTraitFlag
@ COMPOSIT_NODE_ASSET_STRIP_MODIFIER
@ COMPOSIT_NODE_ASSET_SCENE_EFFECT
static void def_tex_output(BlenderRNA *, StructRNA *srna)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
static void def_sh_vertex_color(BlenderRNA *, StructRNA *srna)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
static void def_tex_combsep_color(BlenderRNA *, StructRNA *srna)
@ NODE_GEO_VIEWER_ITEM_FLAG_AUTO_REMOVE
static const EnumPropertyItem prop_view_layer_items[]
static void def_principled(BlenderRNA *, StructRNA *srna)
void rna_Node_Viewer_shortcut_node_set(PointerRNA *ptr, PropertyRNA *prop, int value)
const EnumPropertyItem * rna_node_socket_type_itemf(void *data, bool(*poll)(void *data, bke::bNodeSocketType *), bool *r_free)
static void def_geo_closure_to_list(BlenderRNA *brna, StructRNA *srna)
static void rna_def_node_sockets_api(BlenderRNA *brna, PropertyRNA *cprop, int in_out)
static void rna_def_node_item_array_socket_item_common(StructRNA *srna, const char *accessor, const bool add_socket_type, const bool add_vector_socket_dimensions=false)
static void rna_def_geo_index_switch_items(BlenderRNA *brna)
@ SHD_PRINCIPLED_HAIR_CHIANG
@ SHD_PRINCIPLED_HAIR_HUANG
@ SHD_WAVE_BANDS_DIRECTION_Z
@ SHD_WAVE_BANDS_DIRECTION_DIAGONAL
@ SHD_WAVE_BANDS_DIRECTION_X
@ SHD_WAVE_BANDS_DIRECTION_Y
static void def_fn_input_int(BlenderRNA *, StructRNA *srna)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
static void def_sh_tex(BlenderRNA *, StructRNA *srna)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_deprecated(PropertyRNA *prop, const char *note, const short version, const short removal_version)
static void def_sh_normal_map(BlenderRNA *, StructRNA *srna)
char * STRNCPY(char(&dst)[N], const char *src)
@ NODE_MAPPING_TYPE_VECTOR
@ NODE_MAPPING_TYPE_POINT
@ NODE_MAPPING_TYPE_NORMAL
@ NODE_MAPPING_TYPE_TEXTURE
void IMB_colormanagement_colorspace_items_add(EnumPropertyItem **items, int *totitem)
void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength)
@ GEO_NODE_GREASE_PENCIL_STROKE
@ GEO_NODE_GREASE_PENCIL_FILL
@ GEO_NODE_GREASE_PENCIL_BOTH
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
int(*)(PointerRNA *ptr, void *data, bool *have_function) StructValidateFunc
const EnumPropertyItem rna_enum_node_compare_operation_items[]
const EnumPropertyItem rna_enum_node_socket_type_items[]
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
static void def_sh_attribute(BlenderRNA *, StructRNA *srna)
static void def_fn_random_value(BlenderRNA *, StructRNA *srna)
static void rna_def_internal_node(BlenderRNA *brna)
void RNA_def_function_output(FunctionRNA *, PropertyRNA *ret)
@ RPT_ERROR_INVALID_INPUT
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
static void def_sh_output_aov(BlenderRNA *, StructRNA *srna)
static void def_time(BlenderRNA *, StructRNA *srna)
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
static void def_sh_combsep_color(BlenderRNA *, StructRNA *srna)
static void rna_def_node_link(BlenderRNA *brna)
static void def_fn_format_string(BlenderRNA *brna, StructRNA *srna)
static void def_sh_mix(BlenderRNA *, StructRNA *srna)
static void def_cmp_stabilize2d(BlenderRNA *, StructRNA *srna)
const EnumPropertyItem rna_enum_color_space_interop_id_default_items[]
static void def_sh_uvalongstroke(BlenderRNA *, StructRNA *srna)
static void def_sh_radial_tiling(BlenderRNA *, StructRNA *srna)
static void def_metallic(BlenderRNA *, StructRNA *srna)
static void def_geo_distribute_points_on_faces(BlenderRNA *, StructRNA *srna)
static void def_cmp_render_layers(BlenderRNA *, StructRNA *srna)
int IMB_colormanagement_colorspace_get_named_index(const char *name)
static void def_geo_foreach_geometry_element_input(BlenderRNA *brna, StructRNA *srna)
NodeSocketInterfaceStructureType
int rna_node_tree_idname_to_enum(const char *idname)
void BKE_ntree_update_tag_link_changed(bNodeTree *ntree)
static void rna_def_nodetree(BlenderRNA *brna)
bool BLI_path_abs(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1
@ SHD_NOISE_RIDGED_MULTIFRACTAL
@ SHD_NOISE_HETERO_TERRAIN
@ SHD_NOISE_HYBRID_MULTIFRACTAL
static void rna_def_geo_bake(BlenderRNA *brna, StructRNA *srna)
@ SHD_IMAGE_EXTENSION_EXTEND
@ SHD_IMAGE_EXTENSION_CLIP
@ SHD_IMAGE_EXTENSION_MIRROR
@ SHD_IMAGE_EXTENSION_REPEAT
static void def_sh_vector_displacement(BlenderRNA *, StructRNA *srna)
static void def_geo_rasterize_points(BlenderRNA *brna, StructRNA *srna)
int node_group_ui_class(const bNode *node)
bool RE_layers_have_name(RenderResult *result)
static void def_sh_tangent(BlenderRNA *, StructRNA *srna)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
static void def_sh_mapping(BlenderRNA *, StructRNA *srna)
const EnumPropertyItem rna_enum_node_compositor_extension_items[]
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static const EnumPropertyItem node_cryptomatte_layer_name_items[]
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
@ NODE_CLOSURE_FLAG_DEFINE_SIGNATURE
static const EnumPropertyItem rna_enum_vector_rotate_type_items[]
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void BKE_image_signal(Main *bmain, Image *ima, ImageUser *iuser, int signal)
static void def_geo_input_object(BlenderRNA *, StructRNA *srna)
static void rna_def_geometry_nodetree(BlenderRNA *brna)
PointerRNA RNA_id_pointer_create(ID *id)
@ NODE_MAP_RANGE_SMOOTHERSTEP
@ NODE_MAP_RANGE_SMOOTHSTEP
static void def_combine_bundle(BlenderRNA *brna, StructRNA *srna)
static void rna_def_geo_capture_attribute_items(BlenderRNA *brna)
static void def_geo_index_switch(BlenderRNA *brna, StructRNA *srna)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
const char * IMB_colormanagement_colorspace_get_indexed_name(int index)
static void rna_def_geo_combine_list_items(BlenderRNA *brna)
static void def_geo_curve_set_handle_type(BlenderRNA *, StructRNA *srna)
const EnumPropertyItem rna_enum_ramp_blend_items[]
MINLINE void copy_v2_v2(float r[2], const float a[2])
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
static void def_fn_input_int_vector(BlenderRNA *, StructRNA *srna)
void RNA_def_struct_system_idprops_func(StructRNA *srna, const char *system_idproperties)
@ SHD_ATTRIBUTE_INSTANCER
@ SHD_ATTRIBUTE_VIEW_LAYER
static void rna_def_composite_nodetree(BlenderRNA *brna)
static void def_geo_field_to_list(BlenderRNA *brna, StructRNA *srna)
static const EnumPropertyItem node_principled_distribution_items[]
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
@ SHD_NORMAL_MAP_CONVENTION_DIRECTX
@ SHD_NORMAL_MAP_CONVENTION_OPENGL
static void def_geo_field_to_grid(BlenderRNA *brna, StructRNA *srna)
static void rna_def_geo_rasterize_points_items(BlenderRNA *brna)
const EnumPropertyItem rna_enum_geometry_nodes_gizmo_color_items[]
static void rna_def_geo_foreach_geometry_element_generation_items(BlenderRNA *brna)
@ CMP_NODE_COMBSEP_COLOR_HSL
@ CMP_NODE_COMBSEP_COLOR_YCC
@ CMP_NODE_COMBSEP_COLOR_YUV
@ CMP_NODE_COMBSEP_COLOR_HSV
@ CMP_NODE_COMBSEP_COLOR_RGB
std::string RNA_path_name_to_infix(const StringRefNull string)
@ FN_NODE_ROTATE_EULER_SPACE_OBJECT
@ FN_NODE_ROTATE_EULER_SPACE_LOCAL
@ GEO_NODE_POINT_DISTRIBUTE_POINTS_ON_FACES_POISSON
@ GEO_NODE_POINT_DISTRIBUTE_POINTS_ON_FACES_RANDOM
static void def_group(BlenderRNA *, StructRNA *srna)
static void def_cmp_viewer(BlenderRNA *, StructRNA *srna)
@ GEO_NODE_CURVE_HANDLE_FREE
@ GEO_NODE_CURVE_HANDLE_AUTO
@ GEO_NODE_CURVE_HANDLE_VECTOR
@ GEO_NODE_CURVE_HANDLE_ALIGN
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
void * RNA_struct_blender_type_get(StructRNA *srna)
void RNA_def_property_path_template_type(PropertyRNA *prop, PropertyPathTemplateType path_template_type)
@ SHD_VECT_TRANSFORM_TYPE_POINT
@ SHD_VECT_TRANSFORM_TYPE_NORMAL
@ SHD_VECT_TRANSFORM_TYPE_VECTOR
static void rna_def_fn_format_string_items(BlenderRNA *brna)
static void def_hair_principled(BlenderRNA *, StructRNA *srna)
static void def_toon(BlenderRNA *, StructRNA *srna)
static const EnumPropertyItem node_hair_items[]
@ NODE_MATH_FLOORED_MODULO
static void rna_def_closure_input_item(BlenderRNA *brna)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
static const EnumPropertyItem node_script_mode_items[]
static void rna_def_node_internal_link(BlenderRNA *brna)
void RNA_def_property_flag_hide_from_ui_workaround(PropertyRNA *prop)
static const EnumPropertyItem node_metallic_distribution_items[]
void rna_pointer_create_with_ancestors(const PointerRNA &parent, StructRNA *type, void *data, PointerRNA &r_ptr)
static void rna_def_shader_nodetree(BlenderRNA *brna)
static void def_geo_set_grease_pencil_depth(BlenderRNA *, StructRNA *srna)
GeometryNodeAssetTraitFlag
@ GEO_NODE_ASSET_HIDE_MODIFIER_MANAGE_PANEL
@ GEO_NODE_ASSET_GREASE_PENCIL
@ GEO_NODE_ASSET_WAIT_FOR_CURSOR
@ GEO_NODE_ASSET_POINTCLOUD
@ GEO_NODE_ASSET_MODIFIER
static void def_sh_output(BlenderRNA *, StructRNA *srna)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
static const EnumPropertyItem node_glossy_items[]
const char * RE_engine_id_CYCLES
static const EnumPropertyItem rna_enum_mix_data_type_items[]
static void def_sh_tex_magic(BlenderRNA *brna, StructRNA *srna)
static void def_sh_bump(BlenderRNA *, StructRNA *srna)
static void def_cmp_image(BlenderRNA *brna, StructRNA *srna)
@ SHD_PRINCIPLED_HAIR_PIGMENT_CONCENTRATION
@ SHD_PRINCIPLED_HAIR_REFLECTANCE
@ SHD_PRINCIPLED_HAIR_DIRECT_ABSORPTION
static void def_fn_rotate_euler(BlenderRNA *, StructRNA *srna)
@ GEO_NODE_TRANSFORM_GIZMO_USE_ROTATION_Y
@ GEO_NODE_TRANSFORM_GIZMO_USE_SCALE_X
@ GEO_NODE_TRANSFORM_GIZMO_USE_SCALE_Z
@ GEO_NODE_TRANSFORM_GIZMO_USE_TRANSLATION_X
@ GEO_NODE_TRANSFORM_GIZMO_USE_TRANSLATION_Y
@ GEO_NODE_TRANSFORM_GIZMO_USE_ROTATION_Z
@ GEO_NODE_TRANSFORM_GIZMO_USE_ROTATION_X
@ GEO_NODE_TRANSFORM_GIZMO_USE_SCALE_Y
@ GEO_NODE_TRANSFORM_GIZMO_USE_TRANSLATION_Z
@ NODE_INTEGER_MATH_DIVIDE
@ NODE_INTEGER_MATH_DIVIDE_CEIL
@ NODE_INTEGER_MATH_MODULO
@ NODE_INTEGER_MATH_FLOORED_MODULO
@ NODE_INTEGER_MATH_MULTIPLY_ADD
@ NODE_INTEGER_MATH_DIVIDE_ROUND
@ NODE_INTEGER_MATH_MULTIPLY
@ NODE_INTEGER_MATH_MINIMUM
@ NODE_INTEGER_MATH_ABSOLUTE
@ NODE_INTEGER_MATH_POWER
@ NODE_INTEGER_MATH_NEGATE
@ NODE_INTEGER_MATH_MAXIMUM
@ NODE_INTEGER_MATH_SUBTRACT
@ NODE_INTEGER_MATH_DIVIDE_FLOOR
static void rna_def_nodetree_link_api(BlenderRNA *brna, PropertyRNA *cprop)
static const EnumPropertyItem node_subsurface_method_items[]
static void def_sh_tex_coord(BlenderRNA *, StructRNA *srna)
static void def_geo_image_texture(BlenderRNA *, StructRNA *srna)
const EnumPropertyItem rna_enum_node_float_to_int_items[]
const EnumPropertyItem * rna_NodeSocket_structure_type_item_filter(const bNodeTree *ntree, const eNodeSocketDatatype socket_type, bool *r_free)
static void def_sh_tex_white_noise(BlenderRNA *, StructRNA *srna)
static void rna_def_evaluate_closure_input_items(BlenderRNA *brna)
void IMB_colormanagement_colorspace_interop_id_set(char *name, char *interop_id, int index)
void ED_node_type_draw_color(const char *idname, float *r_color)
const EnumPropertyItem rna_enum_stroke_depth_order_items[]
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static const EnumPropertyItem rna_enum_shader_attribute_type_items[]
static void def_clamp(BlenderRNA *, StructRNA *srna)
static void rna_def_geo_capture_attribute_item(BlenderRNA *brna)
const EnumPropertyItem rna_enum_mapping_type_items[]
const EnumPropertyItem rna_enum_node_grease_pencil_stroke_type_items[]
@ PROP_VARIABLES_RENDER_OUTPUT
static void def_cmp_cryptomatte_common(BlenderRNA *, StructRNA *srna)
static const EnumPropertyItem rna_node_geometry_curve_handle_type_items[]
@ NODE_EVALUATE_CLOSURE_FLAG_DEFINE_SIGNATURE
static void def_evaluate_closure(BlenderRNA *brna, StructRNA *srna)
@ SHD_NORMAL_MAP_BASE_DISPLACED
@ SHD_NORMAL_MAP_BASE_ORIGINAL
static void def_fn_input_rotation(BlenderRNA *, StructRNA *srna)
void BKE_scene_graph_evaluated_ensure(Depsgraph *depsgraph, Main *bmain)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
@ NODE_BOOLEAN_MATH_NIMPLY
@ NODE_BOOLEAN_MATH_IMPLY
static void rna_def_geo_field_to_list_item(BlenderRNA *brna)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ FN_NODE_FLOAT_TO_INT_FLOOR
@ FN_NODE_FLOAT_TO_INT_CEIL
@ FN_NODE_FLOAT_TO_INT_TRUNCATE
@ FN_NODE_FLOAT_TO_INT_ROUND
static void def_cmp_cryptomatte_entry(BlenderRNA *brna)
static void rna_def_combine_bundle_items(BlenderRNA *brna)
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
@ PROPOVERRIDE_NO_COMPARISON
static void def_fn_input_bool(BlenderRNA *, StructRNA *srna)
static void rna_def_node(BlenderRNA *brna)
void RNA_def_property_float_default(PropertyRNA *prop, float value)
ParameterList * RNA_parameter_list_create(ParameterList *parms, PointerRNA *, FunctionRNA *func)
bool DEG_is_original(const T *id)
static void def_rgb_curve(BlenderRNA *, StructRNA *srna)
void rna_def_animdata_common(StructRNA *srna)
void BKE_animdata_fix_paths(ID &id, StringRef prefix, StringRef old_infix, StringRef new_infix, bool verify_paths, const DriverMap &driver_map)
static void def_sh_script(BlenderRNA *, StructRNA *srna)
void RE_engine_free(RenderEngine *engine)
void IMB_colormanagement_interop_id_items_add(EnumPropertyItem **items, int *totitem)
static void rna_def_function_node(BlenderRNA *brna)
static void rna_def_nodetree_nodes_api(BlenderRNA *brna, PropertyRNA *cprop)
@ NODE_WARNING_PROPAGATION_NONE
@ NODE_WARNING_PROPAGATION_ONLY_ERRORS_AND_WARNINGS
@ NODE_WARNING_PROPAGATION_ALL
@ NODE_WARNING_PROPAGATION_ONLY_ERRORS
const EnumPropertyItem * RNA_node_enum_definition_itemf(const bke::RuntimeNodeEnumItems &enum_items, bool *r_free)
static void def_frame(BlenderRNA *, StructRNA *srna)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
static void def_map_range(BlenderRNA *, StructRNA *srna)
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static void def_volume_coefficients(BlenderRNA *, StructRNA *srna)
static void rna_def_separate_bundle_item(BlenderRNA *brna)
static void def_sh_subsurface(BlenderRNA *, StructRNA *srna)
static void def_sh_tex_ies(BlenderRNA *, StructRNA *srna)
static void def_geo_repeat_input(BlenderRNA *brna, StructRNA *srna)
static void rna_def_shader_node(BlenderRNA *brna)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
static void rna_def_cmp_file_output_item(BlenderRNA *brna)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_struct_free(BlenderRNA *brna, StructRNA *srna)
VecBase< float, 2 > float2
static const EnumPropertyItem node_ycc_items[]
static void rna_def_geo_foreach_geometry_element_main_items(BlenderRNA *brna)
static void rna_def_geo_viewer(BlenderRNA *brna, StructRNA *srna)
static void def_geo_curve_sample(BlenderRNA *, StructRNA *srna)
static void def_geo_simulation_output(BlenderRNA *brna, StructRNA *srna)
static void def_sh_ambient_occlusion(BlenderRNA *, StructRNA *srna)
const EnumPropertyItem rna_enum_node_grease_pencil_merge_mode_items[]
static void def_closure_input(BlenderRNA *brna, StructRNA *srna)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
static void rna_def_geo_menu_switch_items(BlenderRNA *brna)
static void def_separate_bundle(BlenderRNA *brna, StructRNA *srna)
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
RenderPass * BKE_image_multilayer_index(RenderResult *rr, ImageUser *iuser)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
static const EnumPropertyItem sh_tex_prop_interpolation_items[]
bke::bNodeTreeType * rna_node_tree_type_from_enum(int value)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
static void def_mix_rgb(BlenderRNA *, StructRNA *srna)
static void def_cmp_defocus(BlenderRNA *, StructRNA *srna)
void BKE_report(ReportList *reports, eReportType type, const char *message)
static void rna_def_geo_foreach_geometry_element_input_item(BlenderRNA *brna)
static void rna_def_geo_field_to_grid_item(BlenderRNA *brna)
static void def_refraction(BlenderRNA *, StructRNA *srna)
BMesh const char void * data
static void rna_def_geo_menu_switch_item(BlenderRNA *brna)
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
static void def_cmp_combsep_color(BlenderRNA *, StructRNA *srna)
int IMB_colormanagement_colorspace_get_interop_id_index(const char *name, const char *interop_id)
static void rna_def_geo_closure_to_list_items(BlenderRNA *brna)
T * DEG_get_evaluated(const Depsgraph *depsgraph, T *id)
const EnumPropertyItem rna_enum_attribute_domain_with_auto_items[]
static void rna_def_closure_input_items(BlenderRNA *brna)
const EnumPropertyItem rna_enum_node_vec_math_items[]
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C, bool rna_write_check=false)
static void rna_def_geo_field_to_list_items(BlenderRNA *brna)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
static void def_hair(BlenderRNA *, StructRNA *srna)
static void def_sh_vector_rotate(BlenderRNA *, StructRNA *srna)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
@ NODE_COMBINE_BUNDLE_FLAG_DEFINE_SIGNATURE
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
@ SHD_WAVE_RINGS_DIRECTION_SPHERICAL
@ SHD_WAVE_RINGS_DIRECTION_X
@ SHD_WAVE_RINGS_DIRECTION_Y
@ SHD_WAVE_RINGS_DIRECTION_Z
static void rna_def_fn_format_string_item(BlenderRNA *brna)
static void rna_def_geo_field_to_grid_items(BlenderRNA *brna)
void BKE_main_ensure_invariants(Main &bmain, std::optional< Span< ID * > > modified_ids=std::nullopt)
static const EnumPropertyItem node_toon_items[]
const EnumPropertyItem rna_enum_geometry_nodes_linear_gizmo_draw_style_items[]
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
const EnumPropertyItem rna_enum_node_integer_math_items[]
const EnumPropertyItem rna_enum_node_clamp_items[]
static void def_custom_group(BlenderRNA *brna, const char *struct_name, const char *base_name, const char *ui_name, const char *ui_desc, const char *reg_func)
bool BKE_main_view_layers_synced_ensure(const Main *bmain)
static void def_sh_bevel(BlenderRNA *, StructRNA *srna)
static void def_sh_displacement(BlenderRNA *, StructRNA *srna)
static const EnumPropertyItem prop_image_view_items[]
const EnumPropertyItem rna_enum_attribute_type_items[]
const EnumPropertyItem rna_enum_node_color_tag_items[]
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
int rna_node_socket_idname_to_enum(const char *idname)
@ SHD_PROJ_EQUIRECTANGULAR
static EnumPropertyItem node_ies_mode_items[]
bool void BLI_path_rel(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1)
static void rna_def_geometry_node(BlenderRNA *brna)
const EnumPropertyItem rna_enum_node_boolean_math_items[]
static void def_float_to_int(BlenderRNA *, StructRNA *srna)
static void def_glass(BlenderRNA *, StructRNA *srna)
static void def_geo_foreach_geometry_element_output(BlenderRNA *brna, StructRNA *srna)
@ CMP_NODE_EXTENSION_MODE_REPEAT
@ CMP_NODE_EXTENSION_MODE_EXTEND
@ CMP_NODE_EXTENSION_MODE_CLIP
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
static void def_geo_input_normal(BlenderRNA *, StructRNA *srna)
@ NODE_VECTOR_ROTATE_TYPE_AXIS_Y
@ NODE_VECTOR_ROTATE_TYPE_EULER_XYZ
@ NODE_VECTOR_ROTATE_TYPE_AXIS_Z
@ NODE_VECTOR_ROTATE_TYPE_AXIS
@ NODE_VECTOR_ROTATE_TYPE_AXIS_X
SpaceNode * CTX_wm_space_node(const bContext *C)
@ NODE_COMPARE_COLOR_BRIGHTER
@ NODE_COMPARE_LESS_EQUAL
@ NODE_COMPARE_COLOR_DARKER
@ NODE_COMPARE_GREATER_EQUAL
@ NODE_COMPARE_GREATER_THAN
void register_node_type_geo_custom_group(bke::bNodeType *ntype)
static void def_sh_tex_wave(BlenderRNA *brna, StructRNA *srna)
static void def_light_evaluation(BlenderRNA *, StructRNA *srna)
static void def_glossy(BlenderRNA *, StructRNA *srna)
const EnumPropertyItem * rna_enum_property_items_from_listbase(const ListBaseT< T > &listbase, CreateItemFn create_item_fn)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
const EnumPropertyItem rna_enum_color_space_convert_default_items[]
const EnumPropertyItem rna_enum_node_socket_structure_type_items[]
static void def_math(BlenderRNA *, StructRNA *srna)
void RNA_def_struct_sdna_from(StructRNA *srna, const char *structname, const char *propname)
void register_node_type_sh_custom_group(bke::bNodeType *ntype)
void rna_Node_socket_update(Main *bmain, Scene *scene, PointerRNA *ptr)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
void BKE_ntree_update_tag_all(bNodeTree *ntree)
@ CMP_NODE_INTERPOLATION_NEAREST
@ CMP_NODE_INTERPOLATION_BICUBIC
@ CMP_NODE_INTERPOLATION_ANISOTROPIC
@ CMP_NODE_INTERPOLATION_BILINEAR
void rna_Node_update_relations(Main *bmain, Scene *scne, PointerRNA *ptr)
static void rna_def_closure_output_item(BlenderRNA *brna)
const EnumPropertyItem rna_enum_dummy_NULL_items[]
static void def_reroute(BlenderRNA *, StructRNA *srna)
static void rna_def_geo_viewer_items(BlenderRNA *brna)
void ntreeCompositCryptomatteSyncFromRemove(bNode *node)
void(*)(void *data) StructFreeFunc
void RNA_def_struct_register_funcs(StructRNA *srna, const char *reg, const char *unreg, const char *instance)
int BLI_listbase_count_at_most(const ListBase *listbase, int count_max) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static void def_sh_tex_checker(BlenderRNA *brna, StructRNA *srna)
static void def_sh_vect_transform(BlenderRNA *, StructRNA *srna)
void BLI_insertlinkbefore(ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void def_comment(BlenderRNA *, StructRNA *srna)
@ NODE_SCRIPT_AUTO_UPDATE
static void def_sh_tex_brick(BlenderRNA *brna, StructRNA *srna)
RenderEngineType * RE_engines_find(const char *idname)
void DEG_id_tag_update_for_side_effect_request(Depsgraph *depsgraph, ID *id, unsigned int flags)
@ GEO_NODE_GIZMO_COLOR_PRIMARY
@ GEO_NODE_GIZMO_COLOR_SECONDARY
int RNA_struct_ui_icon(const StructRNA *type)
@ SHD_SPACE_BLENDER_WORLD
@ SHD_SPACE_BLENDER_OBJECT
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
static void def_cmp_moviedistortion(BlenderRNA *, StructRNA *srna)
static void def_sh_tex_environment(BlenderRNA *brna, StructRNA *srna)
static void def_sh_tex_noise(BlenderRNA *brna, StructRNA *srna)
static void def_cmp_keyingscreen(BlenderRNA *, StructRNA *srna)
void RNA_parameter_get_lookup(ParameterList *parms, const char *identifier, void **r_value)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
static void def_geo_menu_switch(BlenderRNA *brna, StructRNA *srna)
static void def_sh_tex_voronoi(BlenderRNA *brna, StructRNA *srna)
bool IMB_colormanagement_set_whitepoint(const float whitepoint[3], float &temperature, float &tint)
static void def_cmp_cryptomatte(BlenderRNA *brna, StructRNA *srna)
void RNA_def_struct_idprops_func(StructRNA *srna, const char *idproperties)
static void rna_def_combine_bundle_item(BlenderRNA *brna)
static void def_cmp_huecorrect(BlenderRNA *, StructRNA *srna)
@ SHD_VECT_TRANSFORM_SPACE_WORLD
@ SHD_VECT_TRANSFORM_SPACE_CAMERA
@ SHD_VECT_TRANSFORM_SPACE_OBJECT
@ SHD_VECT_TRANSFORM_SPACE_LIGHT
static void rna_def_geo_foreach_geometry_element_generation_item(BlenderRNA *brna)
static void rna_def_geo_closure_to_list_item(BlenderRNA *brna)
static const EnumPropertyItem node_metallic_fresnel_type_items[]
const char * RNA_struct_ui_description(const StructRNA *type)
void ntreeTexCheckCyclics(struct bNodeTree *ntree)
static void def_group_input(BlenderRNA *, StructRNA *)
static void rna_def_geo_simulation_state_item(BlenderRNA *brna)
void RNA_def_function_flag(FunctionRNA *func, FunctionFlag flag)
static const EnumPropertyItem node_light_evaluation_mode_items[]
static void def_cmp_movieclip(BlenderRNA *, StructRNA *srna)
static const EnumPropertyItem prop_image_extension[]
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
const EnumPropertyItem rna_enum_node_geometry_mesh_circle_fill_type_items[]
static void def_geo_sample_index(BlenderRNA *, StructRNA *srna)
static void rna_def_closure_output_items(BlenderRNA *brna)
static void rna_def_evaluate_closure_output_items(BlenderRNA *brna)
RenderEngine * RE_engine_create(RenderEngineType *type)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
static StructRNA * define_specific_node(BlenderRNA *brna, const char *struct_name, const char *base_name)
static void def_sh_tex_gabor(BlenderRNA *brna, StructRNA *srna)
static void rna_def_texture_node(BlenderRNA *brna)
void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type)
void BKE_ntree_update_tag_node_property(bNodeTree *ntree, bNode *node)
Main * CTX_data_main(const bContext *C)
FunctionRNA * RNA_def_function_runtime(StructRNA *srna, const char *identifier, CallFunc call)
static void def_group_output(BlenderRNA *, StructRNA *srna)
void RNA_def_struct_translation_context(StructRNA *srna, const char *context)
static void def_fn_input_color(BlenderRNA *, StructRNA *srna)
static const EnumPropertyItem prop_image_layer_items[]
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
static void rna_def_node_item_array_new_with_socket_and_name(StructRNA *srna, const char *item_name, const char *accessor_name)
@ NODE_MIX_MODE_NON_UNIFORM
@ SHD_SUBSURFACE_RANDOM_WALK_SKIN
@ SHD_SUBSURFACE_RANDOM_WALK
@ SHD_SUBSURFACE_RANDOM_WALK_LEGACY
static void rna_def_compositor_node(BlenderRNA *brna)
char * BKE_cryptomatte_entries_to_matte_id(struct NodeCryptomatte *node_storage)
static void rna_def_geo_repeat_items(BlenderRNA *brna)
static void rna_def_sh_raycast_sample_attribute_item(BlenderRNA *brna)
@ NODE_VIEWER_SHORTCUT_NONE
static const EnumPropertyItem rna_enum_shader_vect_transform_space_items[]
static void def_closure_output(BlenderRNA *brna, StructRNA *srna)
static void def_fn_input_menu(BlenderRNA *, StructRNA *srna)
static void def_vector_math(BlenderRNA *, StructRNA *srna)
bke::bNodeSocketType * rna_node_socket_type_from_enum(int value)
static void rna_def_geo_viewer_item(BlenderRNA *brna)
static void def_fn_input_string(BlenderRNA *, StructRNA *srna)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
static void def_geo_set_grease_pencil_color(BlenderRNA *, StructRNA *srna)
void BKE_ntree_update_tag_active_output_changed(bNodeTree *ntree)
static void rna_def_geo_bake_item(BlenderRNA *brna)
@ PROP_PATH_SUPPORTS_TEMPLATES
@ PROP_PATH_SUPPORTS_BLEND_RELATIVE
static void rna_def_node_panel_state(BlenderRNA *brna)
static void rna_def_texture_nodetree(BlenderRNA *brna)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_geo_gizmo_transform(BlenderRNA *, StructRNA *srna)
static void def_geo_curve_handle_type_selection(BlenderRNA *, StructRNA *srna)
@ SHD_SKY_SINGLE_SCATTERING
@ SHD_SKY_MULTIPLE_SCATTERING
void ntreeCompositCryptomatteSyncFromAdd(bNode *node)
void IMB_colormanagement_colorspace_name_set(char *name, char *interop_id, const char *new_name)
const EnumPropertyItem rna_enum_node_math_items[]
static void def_geo_repeat_output(BlenderRNA *brna, StructRNA *srna)
void RNA_parameter_set_lookup(ParameterList *parms, const char *identifier, const void *value)
static void def_cmp_planetrackdeform(BlenderRNA *, StructRNA *srna)
const EnumPropertyItem * rna_node_tree_type_itemf(void *data, bool(*poll)(void *data, bke::bNodeTreeType *), bool *r_free)
void RNA_def_nodetree(BlenderRNA *brna)
static void def_texture(BlenderRNA *, StructRNA *srna)
@ SHD_BLEND_QUADRATIC_SPHERE
PointerRNA RNA_pointer_create_id_subdata(ID &id, StructRNA *type, void *data)
static void def_geo_input_material(BlenderRNA *, StructRNA *srna)
static const EnumPropertyItem node_refraction_items[]
static void def_geo_merge_layers(BlenderRNA *, StructRNA *srna)
static void rna_def_geo_foreach_geometry_element_main_item(BlenderRNA *brna)
@ GEO_NODE_RASTERIZE_POINTS_ITEM_TYPE_SCALAR
@ GEO_NODE_RASTERIZE_POINTS_ITEM_TYPE_VECTOR
static void rna_def_geo_foreach_geometry_element_input_items(BlenderRNA *brna)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
static void def_sheen(BlenderRNA *, StructRNA *srna)
PointerRNA RNA_pointer_create_with_parent(const PointerRNA &parent, StructRNA *type, void *data)
@ NODE_VECTOR_MATH_COSINE
@ NODE_VECTOR_MATH_MAXIMUM
@ NODE_VECTOR_MATH_MINIMUM
@ NODE_VECTOR_MATH_MULTIPLY_ADD
@ NODE_VECTOR_MATH_REFLECT
@ NODE_VECTOR_MATH_TANGENT
@ NODE_VECTOR_MATH_PROJECT
@ NODE_VECTOR_MATH_CROSS_PRODUCT
@ NODE_VECTOR_MATH_DIVIDE
@ NODE_VECTOR_MATH_NORMALIZE
@ NODE_VECTOR_MATH_SUBTRACT
@ NODE_VECTOR_MATH_DOT_PRODUCT
@ NODE_VECTOR_MATH_DISTANCE
@ NODE_VECTOR_MATH_LENGTH
@ NODE_VECTOR_MATH_MODULO
@ NODE_VECTOR_MATH_FRACTION
@ NODE_VECTOR_MATH_FACEFORWARD
@ NODE_VECTOR_MATH_REFRACT
@ NODE_VECTOR_MATH_MULTIPLY
@ NODE_VECTOR_MATH_ABSOLUTE
void DEG_relations_tag_update(Main *bmain)
static void rna_def_node_item_array_common_functions(StructRNA *srna, const char *item_name, const char *accessor_name)
const EnumPropertyItem rna_enum_node_socket_in_out_items[]
@ GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN
@ GEO_NODE_MESH_CIRCLE_FILL_NONE
@ GEO_NODE_MESH_CIRCLE_FILL_NGON
@ GEO_NODE_LINEAR_GIZMO_DRAW_STYLE_CROSS
@ GEO_NODE_LINEAR_GIZMO_DRAW_STYLE_BOX
@ GEO_NODE_LINEAR_GIZMO_DRAW_STYLE_ARROW
static const EnumPropertyItem prop_shader_output_target_items[]
static void rna_def_geo_simulation_state_items(BlenderRNA *brna)
Scene * CTX_data_scene(const bContext *C)
@ GEO_NODE_BAKE_ITEM_IS_ATTRIBUTE
const EnumPropertyItem rna_enum_node_socket_data_type_items[]
void IMB_colormanagement_get_whitepoint(float temperature, float tint, float whitepoint[3])
@ SHD_VORONOI_DISTANCE_TO_EDGE
@ SHD_VORONOI_N_SPHERE_RADIUS
static void def_sh_tex_wireframe(BlenderRNA *, StructRNA *srna)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
static const EnumPropertyItem rna_enum_node_tex_dimensions_items[]
static void rna_def_evaluate_closure_input_item(BlenderRNA *brna)
static void def_vector_curve(BlenderRNA *, StructRNA *srna)
static void def_fn_input_vector(BlenderRNA *, StructRNA *srna)
const EnumPropertyItem rna_enum_node_combsep_color_items[]
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
static void def_cmp_trackpos(BlenderRNA *, StructRNA *srna)
static void def_common_zone_input(BlenderRNA *, StructRNA *srna)
static const EnumPropertyItem node_principled_hair_parametrization_items[]
const EnumPropertyItem rna_enum_node_geometry_curve_handle_side_items[]
@ CMP_NODE_CRYPTOMATTE_SOURCE_IMAGE
@ CMP_NODE_CRYPTOMATTE_SOURCE_RENDER
static void rna_def_sh_raycast_sample_attribute_items(BlenderRNA *brna)
const EnumPropertyItem rna_enum_icon_items[]
static void def_cmp_convert_to_display(BlenderRNA *, StructRNA *srna)
static void def_cmp_convert_color_space(BlenderRNA *, StructRNA *srna)
@ SHD_GLOSSY_ASHIKHMIN_SHIRLEY
static void def_cmp_file_output(BlenderRNA *brna, StructRNA *srna)
void RNA_def_property_int_default(PropertyRNA *prop, int value)
void RNA_struct_free_extension(StructRNA *srna, ExtensionRNA *rna_ext)
static void def_implicit_conversion(BlenderRNA *, StructRNA *srna)
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop, const bool allow_replace)
void ED_init_custom_node_type(bke::bNodeType *ntype)
static void rna_def_index_switch_item(BlenderRNA *brna)
static void rna_def_combine_list_item(BlenderRNA *brna)
const EnumPropertyItem rna_enum_node_compositor_interpolation_items[]
static void def_geo_input_collection(BlenderRNA *, StructRNA *srna)
static void def_node_image_user(BlenderRNA *, StructRNA *srna)
static void def_geo_combine_list(BlenderRNA *brna, StructRNA *srna)
static void def_scatter(BlenderRNA *, StructRNA *srna)
static void def_geo_simulation_input(BlenderRNA *brna, StructRNA *srna)
static const EnumPropertyItem node_scatter_phase_items[]
@ GEO_NODE_MERGE_LAYERS_BY_ID
@ GEO_NODE_MERGE_LAYERS_BY_NAME
static void def_geo_image(BlenderRNA *, StructRNA *srna)
static void rna_def_rasterize_points_item(BlenderRNA *brna)
void RNA_def_property_array(PropertyRNA *prop, int length)
static void def_sh_tex_sky(BlenderRNA *brna, StructRNA *srna)
@ FN_NODE_ROTATE_EULER_TYPE_EULER
@ FN_NODE_ROTATE_EULER_TYPE_AXIS_ANGLE
static void def_sh_tex_image(BlenderRNA *brna, StructRNA *srna)
const EnumPropertyItem rna_enum_node_map_range_items[]
static const EnumPropertyItem node_glass_items[]
static void def_float_curve(BlenderRNA *, StructRNA *srna)
void rna_iterator_array_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, void *data, size_t itemsize, int64_t length, bool free_ptr, IteratorSkipFunc skip)
static const EnumPropertyItem node_principled_hair_model_items[]
int(*)(bContext *C, PointerRNA *ptr, FunctionRNA *func, ParameterList *list) StructCallbackFunc
static void rna_def_geo_capture_attribute(BlenderRNA *brna, StructRNA *srna)
static void def_cmp_colorbalance(BlenderRNA *, StructRNA *srna)
const EnumPropertyItem rna_enum_attribute_domain_items[]
static void def_cmp_cryptomatte_legacy(BlenderRNA *brna, StructRNA *srna)
void register_node_type_cmp_custom_group(bke::bNodeType *ntype)
static void def_sh_uvmap(BlenderRNA *, StructRNA *srna)
static void rna_def_geo_bake_items(BlenderRNA *brna)
static const EnumPropertyItem node_sheen_items[]
@ GEO_NODE_CURVE_SAMPLE_LENGTH
@ GEO_NODE_CURVE_SAMPLE_FACTOR
static void def_sh_raycast(BlenderRNA *brna, StructRNA *srna)
void RNA_parameter_list_free(ParameterList *parms)
static void rna_def_cmp_file_output_items(BlenderRNA *brna)
static void def_sh_tex_gradient(BlenderRNA *brna, StructRNA *srna)
BlenderRNA RNA_blender_rna_get()
static void rna_def_separate_bundle_items(BlenderRNA *brna)
static void def_tex_bricks(BlenderRNA *, StructRNA *srna)
static void rna_def_geo_repeat_item(BlenderRNA *brna)
static void def_sh_output_linestyle(BlenderRNA *brna, StructRNA *srna)
static void def_geo_input_font(BlenderRNA *, StructRNA *srna)
std::optional< std::string > rna_Node_ImageUser_path(const PointerRNA *ptr)
void BKE_cryptomatte_matte_id_to_entries(struct NodeCryptomatte *node_storage, const char *matte_id)
static void def_tex_image(BlenderRNA *, StructRNA *srna)
static void rna_def_evaluate_closure_output_item(BlenderRNA *brna)
void rna_Node_update(Main *bmain, Scene *scene, PointerRNA *ptr)
@ GEO_NODE_CURVE_HANDLE_LEFT
@ GEO_NODE_CURVE_HANDLE_RIGHT
static void def_cmp_mask(BlenderRNA *, StructRNA *srna)
@ NODE_SEPARATE_BUNDLE_FLAG_DEFINE_SIGNATURE
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
eSpaceNode_ShaderFrom shaderfrom
struct CompositorNodeAssetTraits * compositor_node_asset_traits
struct GeometryNodeAssetTraits * geometry_node_asset_traits
bke::bNodeTreeRuntime * runtime
bke::bNodeType * typeinfo
IDProperty * system_properties
static constexpr int GroupMin
static constexpr int Default
static constexpr int DefaultMax
Compact definition of a node socket.
std::string ui_description
std::string ui_description