Attribute surface node

Renames or deletes point and primitive attributes.

All Parameters Example files

See also: Attrib Create, Attrib Copy, Attrib Mirror, Attrib Promote

The Attribute op allows you to manually rename and delete point and primitive attributes. The RenderMan page remaps attributes especially for the creation of .rib data streams for use with the RenderMan renderer.

Accepts geometry of all types for remapping, renaming, and deletion.

Renderman examples

single varying float

1, meaning that the second coordinate is used as the “t” coordinate.

Cd Cs “vertex color” 0 Map diffuse color as a RIB per vertex color.
uv s “varying float” 0 Map texture coordinates to RIB “s” coordinate as a
uv t “varying float” 1 Map texture coordinates for “t” However, the offset is

Parameters

Point

Overview

Renaming of point attributes. Specify the existing attribute in the first column. Specify the name of the new attribute in the second column.

Delete Attributes

Specify existing attributes to delete.

Update Local Variables

All local variables referring to the renamed and deleted attributes are also renamed or deleted.

Vertex

Overview

Renaming of vertex attributes. Specify the existing attribute in the first column. Specify the name of the new attribute in the second column.

Delete Attributes

Specify existing attributes to delete.

Primitive

Overview

Renaming of primitive attributes. Specify the existing attribute in the first column. Specify the name of the new attribute in the second column.

Delete Attributes

Specify existing attributes to delete.

Detail

Overview

Renaming of detail attributes. Specify the existing attribute in the first column. Specify the name of the new attribute in the second column.

Delete Attributes

Specify existing attributes to delete.

RenderMan

Overview

This tab allows the specification of how attributes will be output to a RIB stream. The first column specifies the name of the Houdini attribute. The second column is what the RIB declaration should be named. The menu of types is the allowable types for RenderMan attribute data. The offset allows you to offset into the Houdini attribute when specifying the RenderMan values.

For Houdini point attributes, either Varying or Vertex types should be used.

For Houdini primitive attributes, either Uniform or Constant types should be used. The Constant type is more efficient when dealing with mesh & NURBS primitives, otherwise there’s really no difference between the two.

Please see the “Application Note #22” from Pixar for a good description on the differences between the different RenderMan types.

Add Default Mappings

Adds the standard attributes, which can be mapped to the RIB standard variables. Turning on the toggle will add attribute mappings for:

Houdini

RIB Cd

Cs

Alpha

Os

uv(0)

s

uv(1)

t

N

N

rest

Pr

width

width

Update Local Variables

All local variables referring to the renamed and deleted attributes are also renamed or deleted.

Example files

AttributeRename

$HFS/houdini/help/examples/nodes/sop/attribute/AttributeRename.cmd

Load | Launch

This is an example of how the Attribute SOP is used to delete and rename attributes within Houdini. Attributes may also be renamed for proper RIB outputs for Renderman.

Usages in other examples

Example name Example for

Ray surface node

Load | Launch

Cloth Create Seam surface node

Load | Launch

Particle surface node

Load | Launch

Dop Import surface node

Load | Launch

Poly Wire surface node

Load | Launch

Mantra render node

Load | Launch