The following attributes allow the user to call custom MEL scripts before and after the attached object’s geometry is output. If these attributes are attached to several objects, they will be called once for each object. These attributes are empty by default.

Pre Geo MEL Script

This attribute specify a MEL script that will be executed before the geometry is exported. More precisely, this script is called after all attributes of this "Geometry Attribute Node" are output and right before the geometry is instantiated.

Post Geo MEL Script

This attribute specify a MEL script that will be executed after the geometry is exported. More precisely, this script is called right after the geometry is instantiated.

The following table explains the variables that are automatically defined in the context of MEL scripts execution.

Variable NameDescription
string $render_passAssigned as the currently rendered pass node name.
string $shape_path Assigned as the current object shape path.

string $attribs_node

Assigned as the current geometry attribute node name.

Example

An example MEL command that could be used to alter the relative shutter offset for the underlying primitive:

float $offset = -`delightRenderState -q -f`;
RiAttribute -n "shutter" -p "offset" "float" $offset;
  • No labels