Mzigaib Posted September 14, 2022 Share Posted September 14, 2022 How can I check with python if a parameter exists in a node? There is this function on the manual but I could not make it work def parm_exist(parmpath): nodepath, parmname = os.path.split(parmpath) node = hou.node(nodepath) return node.parmTuple(parmname) != None Any tips? Quote Link to comment Share on other sites More sharing options...
DonRomano Posted September 15, 2022 Share Posted September 15, 2022 def check_parm_exists(parm_name, node): return node.parm(parm_name) is not None Quote Link to comment Share on other sites More sharing options...
Mzigaib Posted September 15, 2022 Author Share Posted September 15, 2022 Hey thanks I will try that! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.