Name
surface node
Creates a “naming” attribute on points or primitives allowing you to refer to them easily, similar to groups.
See also: Attrib String Edit, Volume Vop
Naming points or primitives
This node sets an attribute (called name by default) on the selected points/primitives to a certain value. For example, you can select a single face, or small set of faces, on some polygonal geometry, and “name” it foo (that is, create a primitive attribute name with the value foo) on the faces. You can then refer to the primitives in subsequent nodes using @name=foo.
This is very similar to groups: using @name=foo is similar to creating a group foo and refering to it using @foo. However, name attributes have two differences from groups:
-
Names are more efficient than groups. For example, you can assign
different names to hundreds or thousands of individual faces, while creating hundreds of groups, each with a single member, would be problematic.
-
Names enforce the constraint that each primitive can only have
one name value at a time (that is, a primitive can’t be included in both
@name=fooand@name=bar), whereas a primitive can be a member of multiple groups. This constraint may be useful in some workflows.
Mantra uses named primitives to determine how to bind volumes to shaders during rendering. The Volume Vop node uses named primitives to determine binding if Autobind is on.
Renaming existing named groups
In addition to assigning names to points and primitives, you can also use this node to rename existing named groups, using the Global, From, and To parameters. This works like the Attrib String Edit node. See the help for Attrib String Edit for more information.
Parameters
|
Attribute |
The name of the attribute to create or edit. The default is |
||||
|
Class |
Whether to name points or primitives. |
||||
|
Number of Namings |
The number of naming attributes to create. Click the
|
||||
|
Enable |
Whether to create/edit the attribute. This parameter lets you animate the operation of this node. |
You can use the following parameters to rename existing named groups. See Attrib String Edit for more information.
|
Global |
When this option is on, the From pattern is replaced for each occurrence in the string. When off, only the first occurrence is replaced. |
|
From |
The string pattern to rename. |
|
To |
The replacement pattern for the From string. |
Usages in other examples
| Example name | Example for | |
|---|---|---|
| bakevolume |
Bake Volume surface node |