19 b.use_custom_socket_order();
20 b.allow_any_socket_order();
22 b.add_output<
decl::String>(
"Names"_ustr).structure_type(StructureType::List);
27 auto &p =
b.add_panel(
"Filter Data Type"_ustr);
28 p.add_input<
decl::Bool>(
"Filter Data Type"_ustr).panel_toggle();
33 .usage_by_panel_toggle();
36 auto &p =
b.add_panel(
"Filter Domain"_ustr);
37 p.add_input<
decl::Bool>(
"Filter Domain"_ustr).panel_toggle();
42 .usage_by_panel_toggle();
49 const bool filter_data_type = params.
extract_input<
bool>(
"Filter Data Type"_ustr);
50 const bool filter_domain = params.
extract_input<
bool>(
"Filter Domain"_ustr);
58 const std::optional<AttributeAccessor> attributes = component->attributes();
62 attributes->foreach_attribute([&](
const AttributeIter &iter) {
63 if (filter_data_type) {
69 if (iter.
domain != domain) {
76 names_set.add(iter.
name);
91 ntype.
ui_name =
"Get Attribute Names";
92 ntype.
ui_description =
"Retrieves attribute names as a list of strings";
#define NODE_CLASS_ATTRIBUTE
#define NOD_REGISTER_NODE(REGISTER_FUNC)
constexpr bool startswith(StringRef prefix) const
static GListPtr from_container(ContainerT &&container)
T extract_input(const UString identifier)
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
void parallel_sort(RandomAccessIterator begin, RandomAccessIterator end)
const EnumPropertyItem rna_enum_attrtype_items[]
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
const EnumPropertyItem rna_enum_attribute_domain_items[]
Vector< const GeometryComponent * > get_components() const
static constexpr int _160
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare