From 92ba465c951d367a9c1e605ed02fd244aa69ac02 Mon Sep 17 00:00:00 2001 From: Bo Kamphues Date: Fri, 22 Jan 2021 10:38:23 +0100 Subject: [PATCH] Fixed update on save error --- python/tk_houdini_arnold/handler.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python/tk_houdini_arnold/handler.py b/python/tk_houdini_arnold/handler.py index cc23fb3..147c742 100644 --- a/python/tk_houdini_arnold/handler.py +++ b/python/tk_houdini_arnold/handler.py @@ -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 @@ -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)