Page tree

Versions Compared

Key

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

Image Added

The PxrOSL Pattern node is a useful way to create and prototype OSL patterns from inside Maya.

Info

We only support OSL patterns (textures for shading) and not closures (materials).

When you first open the node you'll see the representation above. If you expand the Source Code rollout you'll find a handy example built-in to the node.

Image Added

You can see the source path under Compile and Reload buttons.

Compile - Compile the current code to a .oso file for rendering (we needs this stel from the .osl form)
Reload Source File - External edits to the file can be loaded from the saved/updated .osl file

The plus and minus icons are to expand and shrink the editor area.

The Parameters rollout will populate given a correct .args file. You can find examples of this by looking at the PxrLayer node.