User guide
225
Key Type Description
2Dor3D String Describes whether the node works with 2D or 3D data. An
ImageWrite node is 2D, while a Render node is 3D.
dependAll String Describes whether dependencies must wait until all outputs are
complete.
deps String[ ] The names of the RenderNodes that this render node depends
on.
name String The name of the render node that this dictionary represents.
outputs Dictionary[ ] A list of dictionaries. The render passes the current node
outputs. Each dictionary contains a render pass name, a temp
location and a proper location as an asset id.
range Float[ ] A tuple of floats giving the range to render, as set by the Farm
settings parameters.
service String The renderer used. Could be prman, arnold or another
renderer.
Render Dependencies
The function GetSortedDependencyList() provides the information needed to obtain the names of any other
nodes a Render node depends on. For example, the following script returns the names of a Render node’s
dependencies, as a sequence:
def dependencyList(nodeName):
"""
Use GetSortedDependencyList to retrieve the entire dependency tree for a render node.
Each entry is ordered so that render nodes are sorted by number of dependencies, in
descending order.
"""
# Get hold of the node and all of its dependencies as a sequence of dictionaries
node = NodegraphAPI.GetNode(nodeName)
info = FarmAPI.GetSortedDependencyList( [ node ] )
# Extract the 'deps' for each entry in the sequence
# to produce a flat list.
allDeps = [ dep for i in info for dep in i["deps"] ]
return allDeps
28 RENDER FARM API | RENDER DEPENDENCIES