Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Contents

To add a user attribute to an object, we add it via the Edit Parameter Interface.

Add a parameter to the User tab under either the Attributes or Primvars section in the RenderMan tab. The parameter must be located within the User folder and must be prefixed "ri_user_" to be read. 


Setting up MatteID

Create a color attribute called "ri_user_MatteID0". 

The label is the UI displayed name.

Note we have used the tags field near the bottom, this is to inform Houdini and RenderMan of the RenderMan attribute. Valid types of values are listed below.


Valid Tag Values are listed here. These must match the expected data type of the Parameter chosen in the left hand pane called "Create Parameters":

  • int
  • float
  • color
  • point
  • vector
  • normal
  • hpoint
  • matrix
  • string


This will emit the following to the RIB.

 Attribute "user" "color MatteID0" [0 1 0]