Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When the scene is translated to Arnold, attributes are not exported automatically. They must be named in the Attributes tab of Arnold Geo Properties. On export, HtoA translates them into user attributes on the Arnold geometry. To retrieve these a node is then required of the correct type. While there are more types than listed below, these should cover the type dimensions, (int, string, 1,3 and 4 floats). In Arnold, the attribute is selected by name only, (rather than declaring class, etc, as in Houdini). The nodes below are very accepting of inputs. If, for example, an attribute is named in user_data_rgb but the input passed is actually an integer, then it will still work and just convert the integer to float and pass it to each of the R, G & B values. See the Data Types page for more information.

It is now possible to read user data fields from volumetric shapes, allowing things like per-particle user data on volumetric spherical point clouds to affect the result of volumetric shading.

User Data Float

Center

Attribute

Multiexcerpt include
MultiExcerptNamesynopsis
nopaneltrue
PageWithExcerptA5NodeRef:user_data_float

Default

Multiexcerpt include
MultiExcerptNamedefault
nopaneltrue
PageWithExcerptA5NodeRef:user_data_float

User Data Int

Center

 

Attribute

Multiexcerpt include
MultiExcerptNamesynopsis
nopaneltrue
PageWithExcerptA5NodeRef:user_data_int

Default

Multiexcerpt include
MultiExcerptNamedefault
nopaneltrue
PageWithExcerptA5NodeRef:user_data_int

User Data RGB

Center

 

Attribute

Multiexcerpt include
MultiExcerptNamesynopsis
nopaneltrue
PageWithExcerptA5NodeRef:user_data_rgb

Default

Multiexcerpt include
MultiExcerptNamedefault
nopaneltrue
PageWithExcerptA5NodeRef:user_data_rgb

Example
Multiexcerpt
MultiExcerptNameCd
  • Create a polygon sphere, add a paint node and give it some color.
Center

  • By middle clicking on the paint node, the attributes can be checked.  The sphere has 2 point attributes called "P" and "Cd".
Center

  • In an arnold_material, add a Standard Surface shader and user_data_rgb node. In the Attribute name add "Cd".
Center
  • Before rendering, the Cd attribute needs to be passed to the .ass file. Add Arnold Properties to the sphere (tab > Arnold > Add Arnold Properties). Go to the Attributes tab and type Cd into Point Attributes.
Center

  • When rendered, the sphere will be coloured from the paint node.
Center

User Data RGBA

Center

 

Attribute

Multiexcerpt include
MultiExcerptNamesynopsis
nopaneltrue
PageWithExcerptA5NodeRef:user_data_rgba

Default

Multiexcerpt include
MultiExcerptNamedefault
nopaneltrue
PageWithExcerptA5NodeRef:user_data_rgba

User Data String

Center

 

Attribute

Multiexcerpt include
MultiExcerptNamesynopsis
nopaneltrue
PageWithExcerptA5NodeRef:user_data_string

Default

Multiexcerpt include
MultiExcerptNamedefault
nopaneltrue
PageWithExcerptA5NodeRef:user_data_string