hou.ButtonParmTemplate and callbacks

   6690   2   0
User Avatar
Member
665 posts
Joined: July 2005
Offline
How do I add a callback to a parameter created with the hou.ButtonParmTemplate ?


cheers,
-j
User Avatar
Member
1906 posts
Joined: Nov. 2006
Offline
You need to insert it into the tags dictionary argument for the parm template.

For a python callback to print the parm name it would be:

tags={“script_callback”: "print kwargs“, ”script_callback_language“: ”python"}
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
665 posts
Joined: July 2005
Offline
brilliant
  • Quick Links