|On this page|
The attribute can be a float, integer, vector, or string type. If the local variable name is not specified, the attribute name (all in upper case) will be used. After adding a user attribute, the local variable can be used anywhere in operations where local variables are allowed.
Strings are added as "Index" attributes, not as actual "String" attributes. This is only important if you are using these with the HDK.
While each attribute is added in turn, you cannot refer to the previous attribute in the values of the next attribute. Each attribute uses the input geometry as its source, not the result of the previous attribute addition.
Only elements that belong to this group will be written to by the specified value.
What the group is made of.
Number of Attributes
The number of attributes to add. Each is added in turn. However, all expressions will refer to the input geometry, not the intermediate geometry, so later attributes cannot build on the earlier ones.
Name of the attribute.
Specifies which action should be taken, if an attribute already exists with the same name.
Generate error on mis-matched attribute
An error will be generated and the existing attribute, and its values will be left as-is.
Generate warning on mis-matched attribute
The existing attribute definition will not be changed, but its values will be overwritten if Write Values is enabled.
Replace existing attribute
The existing attribute definition will be replaced completely by the new definition.
Use the better type, size and precision
The new attribute definition will use the better of the old definition’s and the requested definition’s type, size, and precision. For numeric types, float is considered better than integer. String and numeric are considered incompatible and so the requested type prevails in that case.
Name of the local variable that corresponds to the new attribute. If you leave this field blank, the local variable is the name of the attribute in all UPPERCASE.
To access individual components of a multi-component attribute, the user can append to this name:
X, Y, or Z for vector attributes.
1, 2, 3, etc. for float attributes. Note that the numbering starts at 1, not 0.
|Attribute||Type||Local variables created|
||Float, size = 1||
||Float, size = 2||
Where to add the attribute to the geometry. Can be a point, detail, primitive, or vertex attribute.
Save to Info Block
Detail attributes can have their values saved to the info block
at the start of .bgeo/.geo files. If this toggle is set,
the detail attribute will save itself in this way. This allows
the value to be retrieved without loading the entire file
using the File SOP's Info Load mode or the
Float, Integer, or String. When Type is "Float", you can use the other menu to set a type qualifier, which tells Houdini how the type should be interpreted.
(Vector is included in the type menu for backwards compatibility. It is the same as setting Type to "Float" and the other menu to "Vector".)
Vector attributes are a backward compatible setting to specify a float attribute which Houdini transforms as a vector.
Float, integer, and string attributes can also be created as arrays. These allow a varying number of values per element. With arrays you cannot specify defaults or alter their values. The Size field also refers to tuple size, so a size of 3 means an array of vector 3s, not an array 3 floats long.
Float attributes may have further type information specified:
Type qualifier (next to Type)
Guess from name
If the name is
N, the qualifier will be "Normal".
If the name is
Cd, the qualifier will be "Color".
If the name is
up, the qualifier will be "Vector".
Otherwise, the qualifier will be "None".
No special treatment.
This attribute is a geometric point. Houdini will transform the attribute as a position.
Houdini will transform the attribute as a vector.
Houdini will transform the attribute as a normal.
This attribute is a color.
Houdini will transform the attribute as a quaternion.
Numeric precision to use (when Type is not String). See the Attribute Cast node for more information.
Number of elements in the attribute
For arrays, this specifies the tuple size of the array, not the number of entries of the array. A value of 3 for a float array will thus make a vector array.
Default attribute value
Turn this off if you want to ensure the attribute exists but not overwrite any existing values.
Allow Local Vars
Turning this off will disable local variables in the Write Values field. This can provide some minor performance improvement when working with very small geometry.
Numeric value to write to the attribute.
String value to write to the attribute.
Vector attributes are modified by transforms. Float attributes are not.
Variable names ending with
2 refer to the geometry from the second input, if applicable. For example,
PT2 is the current point number from the second input.
The seconds a particle in the template has been alive.
Arc length distance from root in the L-systems.
The surface area of the primitive (created by the Measure SOP).
BBX, BBY, BBZ
The point’s relative position in the bounding box.
Point or vertex alpha value.
CEX, CEY, CEZ
The centroid of the geometry.
COMX, COMY, COMZ
Center of mass.
CR, CG, CB
Diffuse point or vertex color.
Point or vertex crease weight value.
Distance from particle to last collision.
Number of divisions to build the circle swept with Polywire (created by L-systems).
Generation in the L-systems.
The ID of the particle in the input.
The age of the point in the L-system computation.
Percent of total life used (from 0 to 1).
Level of detail.
MAPU, MAPV, MAPW
Point or vertex texture coordinates.
The string name of the current material (the value of the
The number of layers that are considered active for display.
The total number of points in the template geometry.
NX, NY, NZ
The perimeter of the primitive (created by the Measure SOP).
Primitive number & total number of primitives.
The point number of the currently processed point.
RESTX, RESTY, RESTZ
The rest position.
Number of segments to divide a curve up into in Polywire (created by L-systems).
SIZEX, SIZEY, SIZEZ
The size of the bounding box.
Elasticity of a point.
Spring tension of an edge.
TX, TY, TZ
UPX, UPY, UPZ
The vector pointed in the up direction.
Vertex number & total number of vertices.
VX, VY, VZ
Point spline weight.
The width of the curve. Used by mantra for rendering curves & polywire for generating trees.
The X extents of the bounding box of the geometry.
The Y extents of the bounding box of the geometry.
The Z extents of the bounding box of the geometry.