User guide

226
Render Passes and Outputs
As with Render Dependencies, the sequence of dictionaries returned by GetSortedDependcyList() contains the
names, paths, and temporary paths of the outputs a Render node produces.
Render Output Names
The following example script defines a function that returns a sequence comprised of the names of the output
passes produced by a render node:
def outputNames(nodeName):
"""
Get the render outputs of a render node
"""
# Get hold of the node and all of its dependencies as a
# dictionary
node = NodegraphAPI.GetNode(nodeName)
info = FarmAPI.GetSortedDependencyList( [ node ] )
# Extract the names of the outputs
# of a render node
allDeps = [
# The output name
output["name"]
# Each info entry
for i in info
# We only want the info for our particular node
if i["name"] == nodeName
# We only want output info
for output in i["outputs"]
]
return allDeps
Render Output File Paths
Each image file rendered is written to a temporary location before being copied to the chosen final location. It
therefore has two locations, the temporary (which is always a local file path) and the final (which can be an Asset ID).
The default temporary path contains the Process ID of the current Katana session (not the one running on the farm).
This path can be changed through the UI or the Nodegraph API, so knowledge of is useful.
28 RENDER FARM API | RENDER PASSES AND OUTPUTS