Skip to content

Commit

Permalink
Added renderpass name string and now updates on creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamphues committed Jan 11, 2021
1 parent 4c33c12 commit 7a40681
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Binary file modified otls/sgtk_arnold.otl
Binary file not shown.
14 changes: 14 additions & 0 deletions python/tk_houdini_arnold/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ def __getBeautyPath(self, node):
# format sequence key to houdini formatting
fields["SEQ"] = "FORMAT: $F"

# replace name with renderpass name
fields["name"] = self.__getRenderpassName(node)

# resolve camera
cam = self.__getCameraNode(node)

Expand Down Expand Up @@ -160,6 +163,9 @@ def __getAOVPath(self, aov, node):
# format sequence key to houdini formatting
fields["SEQ"] = "FORMAT: $F"

# replace name with renderpass name
fields["name"] = self.__getRenderpassName(node)

# resolve camera
cam = self.__getCameraNode(node)

Expand Down Expand Up @@ -242,3 +248,11 @@ def __updateAOVParm(self, node, parm):
parm_path.lock(False)
parm_path.set("Disabled")
parm_path.lock(True)

def __getRenderpassName(self, node):
# get the renderpass name from the supplied node

parm = node.parm("renderpass")
name = parm.eval()

return name

0 comments on commit 7a40681

Please sign in to comment.