I am trying to work on a script to update Parm help text from python and I cant seem to get `parmTemplateGroup` to do anything to the actual type definition. Am I doing something incorrect here?
node=hou.selectedNodes()[0]node.allowEditingOfContents()d=node.type().definition()ptg=d.parmTemplateGroup()pt=ptg.find("execute")pt.setHelp("I'm trying to add some help documentation!")ptg.replace("execute",pt)d.setParmTemplateGroup(ptg)print("ptg:",ptg.find("execute").help())print("d:",d.parmTemplateGroup().find("execute").help())print("typedef:",node.type().definition().parmTemplateGroup().find("execute").help())print("node:",node.parmTemplateGroup().find("execute").help())node.matchCurrentDefinition()
ptg: I'm trying to add some help documentation!
d:
typedef:
node:
The "execute" parameter on ROP nodes is what's called a base parameter. Unfortunately those cannot be changed except in terms of visibility settings (invisible, disable when, hide when). It's the same sort of thing as if you were trying to modify the core transform related parameters on Object nodes.
Graham Thompson, Technical Artist @ Rockstar Games