The RifPlugin presented here is intended to help artists experiment with LPE's. When using the RifPlugin there is no need to use the RenderMan Controls window to assign a custom LPE. Instead, LPEs can be saved as a text document in Maya's current project directory. For example, a text file named "trial.lpe" might contain the following text.
lpe:C<RD[^'floor']><L.> # not_floor lpe:C<RD['floor']><L.> # floor
When rendering a scene that uses the LPE_Rif plugin adds the appropriate
lpe:C<RD><L.'foo'> # diffuse_foo_light
Another advantage of using the rif is that only is it easier to experiment with LPEs in order to learn about the tokens they use but shot-specific custom LPEs do not have to be added to the rendermn.ini file.
Step 1 - get the Rif plugin
Pre-built versions of the plugin are available for downloading from the link at the top of this
page. Alternatively, save the source code in the,
Step 2 - create a LPE text file
Save the following text as trial.lpe in the Maya project directory that you intend
to use for your LPE experiments, say,
Listing 1 (trial.lpe)
Step 3 - assign the plugin
Go to the Render Settings Advanced tab and assign the plugin and the trial.lpe file.
Step 4 - edit 'r' edit 'r' etc...
Experimentation with one or more LPE's can proceed quickly by editing the trial.lpe document in Cutter (or any other text editor) and pressing 'r' in the "it" window to re-render. There is no need to keep Maya as a "front" window.
© 2002- Malcolm Kesson. All rights reserved.