Skip to content

Commit

Permalink
Merge pull request #4 from nfa-vfxim/dev
Browse files Browse the repository at this point in the history
Fixed update on save error
  • Loading branch information
bkamphues authored Jan 22, 2021
2 parents 28d40db + 92ba465 commit 6d31abf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/tk_houdini_arnold/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ def exportASSFile(self, **kwargs):
# callback when export ass files is selected

node = kwargs["node"]
parm = kwargs["parm"]

self.__updateASSParm(node, parm)
self.__updateASSParm(node)

# private functions

Expand Down Expand Up @@ -295,9 +294,12 @@ def __updateAOVParm(self, node, parm):
parm_path.set("Disabled")
parm_path.lock(True)

def __updateASSParm(self, node, parm):
def __updateASSParm(self, node):
# update ass file location parameter

# set parm
parm = node.parm("ar_ass_export_enable")

# if checkbox is ticked
if parm.eval():
node.parm("ar_ass_file").lock(False)
Expand Down

0 comments on commit 6d31abf

Please sign in to comment.