Slim Ribbox Scripting I
return to main index |
|
w h a t i s i t g o o d f o r ?
The best way of appreciating the value of being able to insert snippets of RIB statements into an output rib file is to look at a couple of examples. The following ribbox text can be attached to a Maya object such as a nurbs sphere (one unit in radius) or a polygonal cube (2 x 2 x 2). In either case the Maya object is simply acting as a proxy object and as such it will not appear in the final rendered image.
This ribbox script scales a RenderMan (quadric) Sphere into a thin upright ellipsoid - something that might be useful as a (candle) flame. The Translations ensure that different scale factors would make the top of the ellipsoid appear to move up and down while its base remains stationary. Of course this could easily be achieved in Maya. However, the next script shows a way of "automatically" animating the movement of the ellipsoid.
The embedded TCL expression uses slims built-in noise() function to
generate values that range from -1.0 to 1.0. A different value is generated
for each frame of an animation by accessing one of Slims pre-defined variables
- $pct. This variable returns a value between 0.0 and 1.0 depending on
the percentage of the animation completed. pixar_docs-6.0/shading/expressions/expressions.html |
© 2002-6 Malcolm Kesson. All rights reserved.