This tutorial presents four scripts that implement an interface that enable the edges of a
polygonal object to control the displacement of another object - either polygonal
or nurbs. The OSL shader used to achieve this effect is presented in the tutorial
OSL: Wyvill Lines.
Step 1 - Installing the Scripts
It is assumed the reader has followed the recommendations on customizing
RenderMan for Maya presented in the tutorial,
Step 2 - Using the Scripts
Launch Maya and check the RenderMan_for_Maya plugin is loaded.
Step 3 - Shading
The WyvillLines OSL shader need only be used on the controlled object - the sphere. The shading network is shown next.
Notice in figures 2 and 3 the "Data Name" must be identical for the controller and controlled objects.
Step 4 - Rendering
Set the project and save the scene.
When the scene is rendered two rib archives will be saved in the project's data directory. For example,
The first archive defines two custom attributes while the second rib file defines the geometry
that represents a wireframe version of the controller polygonal object. The vertices of
the controller object can be animated. However, change the "Evaluation" mode in Maya's Preferences
© 2002- Malcolm Kesson. All rights reserved.