A
render passRender Pass can inherit attributes from a parent
render passRender Pass. The parent-child relation is defined through a connection on the child pass’ "parentRenderPass" message attribute. For example, the following MEL
commandscommand will set ‘parentPass’ as the parent of ‘childPass’:
addAttr -at "message" -ln "parentRenderPass" "childPass"; DL_connectNodeToMessagePlug("parentPass| Code Block |
|---|
DRP_setParentPass("childPass", " |
parentPass"); |
|
When looking for
render pass attributeRender Pass attribute values, 3Delight for Maya starts by looking in the
render pass thatRender 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.