Slim Ribbox Scripting V
return to main index |
|
i n t r o d u c t i o n
This example of geometry substitution involves the use of a Maya particle emitter. The ribbox shown below querries the number of particles using the MEL command, particle -q -ct ... and then steps over each using the command, getParticleAttr -at position ... in order to querry the each particles xyz location. The positional data can be used for any purpose, for example, a blobby object. In the example shown below a long string is created that inserts a colored spheres into the scene. The final rib statement in the script, "Opacity 0 0 0", makes the actual particles invisible. |
ribbox listing 1 Of course, inserting colored spheres as substitutes for the actual Maya particles is of no importance. However, the script could be quite easily adapted to render a blobby object (also) or to generate a procedural primitive via a helper application. |
figure 1 |
© 2002-6 Malcolm Kesson. All rights reserved.