Cutter
|
|
|
Each of the |
Popup Menu
The popup menu (activated by a right-mouse click or control+click) has several
menu items help a user to edit a ".rman" file. Figure 2 shows a
|
|
Figure 3 shows how the |
|
|
Work FlowThis section provides a step-by-step example of creating a ".rman" document and its associated Mel scripts from scratch. The trio of files implement a preShapeScript that querries the positions of particles in a particle system so that a pre-baked rib can be instanced at each particle position. The scripts that will be created are, addBakedToParticlesUI.rman
addBakedToParticlesUI.mel
addBakedToParticlesRI.mel
As each file is created it should be saved in the following directory, |
Step 5
Use the
Listing 3 shows the Mel script that Cutter will generate. Save the script in the RMS_mel directory. Listing 3 (addBakedToParticlesUI.mel)
|
Step 6
Use the
Listing 4 shows the Mel code that will be generated. Save the script in the RMS_mel directory. Listing 4 (addBakedToParticlesRI.mel)
The last three lines of Mel are present only for the purposes of testing the
script. In step 8 they will be replaced by the code that will querry a
particle system and write the appropriate Rib statements.
|
Step 7
There should be three scripts in the |
|
|
|
Use the
Next, the code for handling particle systems will be added to the "addBakedToParticlesRI.mel" script. |
Step 8Replace the last three lines of code in the "addBakedToParticlesRI.mel" script with the text shown in listing 5. Listing 5
Save the file and re-source it in Maya's Script Editor ie.
|
Step 9
Delete the poly plane and add a particle emitter to the scene. Scrub the time line
so that some particles are emitted. Select a few of the particles, but not
the emiter, and run the addBakedToParticlesUI command from the Script Editor.
Listing 6 (teapot.rib)
Edit the "Pre-Baked Rib" path (figure 12) so that the "teapot.rib" file is referenced.
Render the scene again and a cluster of teapots should be seen. |
|
|
|
© 2002- Malcolm Kesson. All rights reserved.