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
Determine multiparm add/remove button #
3830 2 1- jjayakumar
- Member
- 106 posts
- Joined: June 2011
- Offline
- asnowcappedromance
- 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
callback script is something easy like this:
def evalParms():
node = hou.pwd()
parmNum = node.parm(“integerParm”).eval()
print parmNum
- jjayakumar
- Member
- 106 posts
- Joined: June 2011
- Offline
-
- Quick Links