14 b.add_output<
decl::Bool>(
"Selection").field_source_reference_all();
19 std::string
name =
params.extract_input<std::string>(
"Name");
21 params.set_default_remaining_outputs();
26 std::make_shared<bke::NamedLayerSelectionFieldInput>(std::move(
name))};
27 params.set_output(
"Selection", std::move(selection_field));
36 ntype.
ui_name =
"Named Layer Selection";
37 ntype.
ui_description =
"Output a selection of a Grease Pencil layer";
constexpr int NODE_DEFAULT_MAX_WIDTH
#define GEO_NODE_INPUT_NAMED_LAYER_SELECTION
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void node_type_size(bNodeType &ntype, int width, int minwidth, int maxwidth)
void node_register_type(bNodeType &ntype)
void geo_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare