11 b.use_custom_socket_order();
12 b.allow_any_socket_order();
13 b.add_input<
decl::Geometry>(
"Geometry"_ustr).description(
"Geometry to override the name of");
14 b.add_output<
decl::Geometry>(
"Geometry"_ustr).propagate_all().align_with_previous();
21 std::string name = params.
extract_input<std::string>(
"Name"_ustr);
22 geometry_set.
set_name(std::move(name));
23 params.
set_output(
"Geometry"_ustr, std::move(geometry_set));
31 ntype.
ui_name =
"Set Geometry Name";
32 ntype.
ui_description =
"Set the name of a geometry for easier debugging";
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_SET_GEOMETRY_NAME
#define NOD_REGISTER_NODE(REGISTER_FUNC)
T extract_input(const UString identifier)
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_register()
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
void set_name(std::string name)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare