Determine multiparm add/remove button #

   3850   2   1
User Avatar
Member
106 posts
Joined: June 2011
Offline
Hi folks

In multiparm, there are + and X buttons. Is there a way I can determine which multiparm + or X button is pressed. I basically want the parm number associated with the button pressed or Is there a way I can add callback script to those buttons. Thank you in advance.

-J
User Avatar
Member
512 posts
Joined: July 2009
Offline
I'm pretty sure there's no way of accessing the plus or minus buttons with python, what you could do - add an integer parm to your node and have the have the multiparmfolder relative reference it, that way you can create a callback script on the integer parm and just hide the multiparm plus minus button in the ui.
callback script is something easy like this:


def evalParms():
node = hou.pwd()
parmNum = node.parm(“integerParm”).eval()
print parmNum
http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
106 posts
Joined: June 2011
Offline
Thanks Manuel
  • Quick Links