Multiparm button instance question
484 1 0-
- Integral3D
- Member
- 25 posts
- Joined: June 2023
- Offline
Hello! I was messing around with multiparms for my HDA and found them pretty confusing. But one thing that I cant seem to figure out is if its possible to have a button as an instance, then make a callback script that prints the index of that button in the multiparm? Seems like a pretty simple thing But I cant figure it out to save my life.
-
- tamte
- Member
- 9687 posts
- Joined: July 2007
- Offline
like any parm callback script, the info is in the kwargs dictionary
specifically
for example to print button parm name and index you can use this as callback script:
or just:
to see what info you can work with
specifically
kwargs["script_multiparm_index"]
for example to print button parm name and index you can use this as callback script:
print( f"button name: { kwargs['parm'].name() }\nbutton index: { kwargs['script_multiparm_index'] }" )
or just:
print( kwargs )
Edited by tamte - Nov. 16, 2025 17:55:40
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- Quick Links

