Set Attribute

 
Original previz, and result previz of a SetAttribute layout node : the rgbPP attribute has been modified for purple, display color attribute has been set to 0.5 in the cacheProxyManager node

The SetAttribute node forces the value of some specified (existing) cache attributes, on the affected Entities. The result may affect anything using this attribute, in previz or in rendering

Add node


SetAttribute node in the Layout Graph Edition panel

Node parameters

Parameters are accessible by double-clicking on the node in the Layout Graph Edition panel:


SetAttribute node parameters

Name Name of the node
Active Whether the node is active or not
Attribute

nameOfTheAttrToOverride newValue[;nameOfTheAttrToOverride2 newValue2][etc.]. It is also possible to randomize the value by using the following template nameOfTherAttrToOverride newValueMin newValueMax;

Beware that the attribute name is case sensitive.

Each attribute not associated with a value will take its value from the sampled map according to the channel setting and the entity position on the texture map geometry. If the entity root cannot be located on the map, the attributes using the map are not set.

Examples:
tshirtIdx 1
shirtHue 0.9
shirtColorFromMap
pantsColor 0.8 0.3 0.3
RandomSeed This node use a specific random seed which can be modifier to change the attribute random pick results, when using random min/max values
Channel Which value to use for the shaderAttribute : RGB Vector, or red, green, blue or alpha channel single value.
Target The map target in the scene, used to sample values (in the RGB range [0-1]) at entity root position. This parameter will be used to automatically refresh all the following parameters.
Map

This parameters should not be edited directly by the user. It will be automatically updated when the target vector field changes.

Contains the texture map.

Geo Vertices

This parameters should not be edited directly by the user. It will be automatically updated when the target vector field changes.

Contains the geometry vertices on which the texture map is applied.

Geo Normals

This parameters should not be edited directly by the user. It will be automatically updated when the target vector field changes.

Contains the geometry normals on which the texture map is applied.

Geo UVs

This parameters should not be edited directly by the user. It will be automatically updated when the target vector field changes.

Contains the geometry UVs on which the texture map is applied.

Geo Triangles

This parameters should not be edited directly by the user. It will be automatically updated when the target vector field changes.

Contains the geometry triangles on which the texture map is applied.