Overview
The MEL Scripts group of attributes provides the ability to execute MEL scripts at certain stages during the rendering process. This opens up the possibility of doing whatever tweaks required at these stages. Since 3Delight comes with a set of MEL bindings for the RenderMan standard, it also becomes possible to insert RenderMan commands anywhere during rendering (see MEL RenderMan Binding). This is the equivalent of “RIB Boxes” in other softwares but with the added flexibility of a scripting language. In addition to insert points listed here, there are others available in Geometry Attribute Nodes (see Geometry MEL Scripts) and in the Light Attribute Nodes (see Light MEL Scripts).
The variable 'string $render_pass' is automatically defined in the context of these scripts and is assigned the current Render Pass node name.
...