setParmTemplateGroup not updating / working

   406   2   1
User Avatar
Member
60 posts
Joined: July 2013
Offline
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:
User Avatar
Member
1922 posts
Joined: Nov. 2006
Offline
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
User Avatar
Member
60 posts
Joined: July 2013
Offline
Haha awesome for my test i literally picked the one parm I cant change.
Thanks looks like that works on other parms
  • Quick Links