14 b.add_input<
decl::String>(
"Tag Filter"_ustr).optional_label();
15 b.add_input<
decl::String>(
"Tags"_ustr).structure_type(StructureType::List);
22 const std::string tag_filter = params.
extract_input<std::string>(
"Tag Filter"_ustr);
29 if (
list.cpp_type().is<std::string>()) {
30 list.typed<std::string>().
foreach([&](
const std::string &tag) { tags.add(tag); });
43 ntype.
ui_description =
"Check if a filter string matches a list of tags";
63 const int sep = remaining.
find(
',');
75 remaining = remaining.
substr(sep + 1);
#define NODE_CLASS_CONVERTER
#define NOD_REGISTER_NODE(REGISTER_FUNC)
bool contains_as(const ForwardKey &key) const
constexpr StringRef trim() const
constexpr bool is_empty() const
constexpr int64_t find(char c, int64_t pos=0) const
constexpr StringRef substr(int64_t start, int64_t size) const
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_register()
static void node_declare(NodeDeclarationBuilder &b)
bool tag_filter_matches(const StringRef tag_filter, const Set< std::string > &tags)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare