Page tree

Versions Compared

Key

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

...

Info
  • Notice that Identifier ID will work without OpScripts in Preview and Live rendering, however, they will fail with a Disk Render without the OpScript to define them. This is because we the ID.  We auto-generate IDs only for interactive rendering sessions (the ID picker), not Disk Renders. Identifier Name does not need both identifier ID and identifier Name, so they will work without an OpScript.

 

  • For Attribute selections, be sure and prefix with "user:" in the PxrVary node. In our example we use, user:rmanFloatAttr

 

 

This is an example OpScript used to create an ID on a sphere.

...

The OpScript is assigned just below the primitive create. Each one is slightly different to ensure variation.

From here you will notice there are four different outputs, four exactly, illustrating the different results from using different PxrVary sources (Name, ID, PrimVar, Attribute). Rendering each of these will produce a different colored spherespheres. Download the scene to experiment!

...