RfM
|
IntroductionThis tutorial is an extension of the tutorial "Python Rifs Getting Started 1". The reader should carefully follow that tutorial before following the instructions shown on this page. |
Using the Vertex Data to Place a "Cluster" of PointsSelect both polymesh surfaces in Maya and execute the following MEL procedure in the Add_Primvar tab of the script editor. addFloatPrimVar("render_mode", 1);
Save the following script shown in listing 5 as rif_mesh_geo5.py and edit the Rif_Py tab - as shown below.
Note the use of the import batch import rif_mesh_geo5 reload(rif_mesh_geo5) rifs = ['rif_it','rif_mesh_geo5.Rif(250, 0.3, 0.02)' ] batch.render(1,1, rifs) Listing 5 - rif_mesh_geo5.py
Using the new rif should produce an image similar to figure 5.
|
Using the Vertex Data to Place a Curve around each Face
Save the following script shown in listing 6 as rif_mesh_geo6.py and edit the Rif_Py tab - as shown below.
Note the use of the import batch import rif_mesh_geo6 reload(rif_mesh_geo6) rifs = ['rif_it','rif_mesh_geo6.Rif(0.05)' ] batch.render(1,1, rifs) Listing 6 - rif_mesh_geo6.py
Using the new rif should produce an image similar to figure 6.
|
Using the Vertex Data to Place a Curve at each Vertex Normal
Save the following script shown in listing 7 as rif_mesh_geo7.py and edit the Rif_Py tab - as shown below.
Note the use of the import batch import rif_mesh_geo7 reload(rif_mesh_geo7) rifs = ['rif_it','rif_mesh_geo7.Rif(1, 0.05)' ] batch.render(1,1, rifs) Listing 7 - rif_mesh_geo7.py
Using the new rif should produce an image similar to figure 7.
|
© 2002- Malcolm Kesson. All rights reserved.