RfM
|
Introduction
The functionality of the python rif presented by this tutorial is very similar to
the C++ RifPlugin used in the tutorial "RifPlugin: Mesh2Blobby".
The advantage of using python to implement a rif is that the same code will run on Windows,
Linux and MacOSX. The advantage of using compiled C++ RifPlugins is that they run faster
than python. However, C++ RifPlugins are considerably more difficult to code than their
python equivalent.
|
Figure 1 - basic mesh
Figure 2 - result of using rif_mesh2blobby. |
Applying the Rif in MayaRfM does not provide a GUI that enables python rifs to be used in an artist friendly way. However, there is a work-around, but it assumes the reader has downloaded the scripts given in the tutorial "RfM 23: Customizing" and has reviewed their use for batch rendering outlined in the tutorial "RfM 22: Batch Rendering and Filtering". |
Workflow
1 Select a polymesh object that you wish to be rendered as a blobby.
Note the names have each has automatically been given the prefix 4 Execute the following python commands in the script editor (Python tab), import batch rifs = ['rif_it','rif_mesh2blobby.Rif(0.3)'] batch.render(1,1, rifs) The value of 0.3 will be used by the rif if it cannot find the primvar values of blob_min and blob_max, in which case the blobs will be of a uniform size. |
© 2002- Malcolm Kesson. All rights reserved.