A render pass Render Pass can inherit attributes from a parent render pass Render Pass. The parent-child relation is defined through a connection on the child pass’ "parentRenderPass" message attribute. For example, the following MEL commands command will set ‘parentPass’ as the parent of ‘childPass’:
addAttr -at "message" -ln "parentRenderPass" "childPass"; | Code Block |
|---|
DRP_setParentPass("childPass", "parentPass");
|
|
When looking for render pass attribute Render Pass attribute values, 3Delight for Maya starts by looking in the render pass that Render Pass that is being rendered, and will then search this pass’ parents for the attribute presence. If an attribute is not found anywhere in the hierarchy, its default value will be used.