hou.ButtonParmTemplate and callbacks

   7543   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
1926 posts
Joined: Nov. 2006
Online
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