HDA callback script for button in multiparm (blocklist)

   3135   1   1
User Avatar
Member
2 posts
Joined: 11月 2015
Offline
Hi

How can I get get the id for the specific multiparm entry in the HDA module, when the corresponding button in the multiparm blocklist is being pressed?

IE. How do I set up the callback script on the buttons for this to work? I have attached an example image.

Cheers

Attachments:
multiparm blocklist button.png (64.6 KB)

User Avatar
Member
191 posts
Joined: 10月 2018
Offline
What I just tried that worked was in the PythonModule section, have my function expect the kwargs argument that Houdini can pass.

def printParm( kwargs ):
    print kwargs
    print kwargs["parm"]
    print kwargs["parm_name"]

Then in the Callback Script for your submit# parm put:
hou.phm().printParm( kwargs )
  • Quick Links