Blender V5.3
blender::nodes::node_geo_rename_attribute_cc Namespace Reference

Enumerations

enum class  RenameMode { Single , Prefix }

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_geo_exec (GeoNodeExecParams params)
static void node_register ()

Variables

const EnumPropertyItem rename_mode_items []

Enumeration Type Documentation

◆ RenameMode

Enumerator
Single 
Prefix 

Definition at line 15 of file node_geo_rename_attribute.cc.

Function Documentation

◆ node_declare()

void blender::nodes::node_geo_rename_attribute_cc::node_declare ( NodeDeclarationBuilder & b)
static

◆ node_geo_exec()

void blender::nodes::node_geo_rename_attribute_cc::node_geo_exec ( GeoNodeExecParams params)
static

Definition at line 49 of file node_geo_rename_attribute.cc.

References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_as(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::ResourceScope::allocator(), blender::bke::GeometryComponent::attributes(), blender::bke::GeometryComponent::attributes_for_write(), blender::ResourceScope::construct(), blender::bke::AttributeAccessor::contains(), blender::LinearAllocator< Allocator >::copy_string(), blender::bke::GeometryComponent::Curve, blender::nodes::GeoNodeExecParams::error_message_add(), blender::nodes::GeoNodeExecParams::extract_input(), blender::bke::AttributeAccessor::foreach_attribute(), blender::geometry::foreach_real_geometry(), blender::bke::GeometryComponent::GreasePencil, blender::bke::GeometryComponent::Instance, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), lock, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::bke::GeometryComponent::Mesh, blender::bke::AttributeIter::name, node_geo_exec(), blender::bke::GeometryComponent::PointCloud, Prefix, blender::bke::MutableAttributeAccessor::rename(), blender::nodes::GeoNodeExecParams::set_output(), Single, blender::blender::StringRefBase::startswith(), blender::blender::StringRefBase::substr(), TIP_, and blender::nodes::Warning.

Referenced by node_geo_exec(), and node_register().

◆ node_register()

Variable Documentation

◆ rename_mode_items

const EnumPropertyItem blender::nodes::node_geo_rename_attribute_cc::rename_mode_items[]
Initial value:
= {
"SINGLE",
0,
N_("Single"),
N_("Rename a single attribute with the provided attribute name")},
"PREFIX",
0,
N_("Prefix"),
N_("Rename all attributes with the provided prefix")},
{},
}
#define N_(msgid)

Definition at line 20 of file node_geo_rename_attribute.cc.

Referenced by node_declare().