Hello,
I have a Multiparm Block (tabs) that allows users to position objects within my Digital Asset. The objects have a fairly large stack of attribs, and I'd like to give the user a visual indication of which object their currently selected tab refers to. Is there any way to read the currently selected multiparm tab?
When dealing with regular (non-multiparm) folders, you can open a Python shell and do:
hou.node('/obj/myhda1').parm('tabfolder').eval()
… and it tells you which (non-multiparm) tab is selected by index.
But, when you call eval() on a multiparm folder parameter, you do not get the index of the currently selected folder. Houdini returns the integer total count of multiparms created.
Seems this question has been asked before [sidefx.com], a couple of years ago, and was never answered. (On the ODForce boards too, [forums.odforce.net] but the replies were all misunderstanding the multiparm block part.) I have the exact same question as that guy. I don't suppose a way of doing this has surfaced since then?
Maybe there is a way to query some hidden GUI element that's responsible for showing the multiparm tabs? Or maybe a fancy way to use callback scripts?
How to find currently selected tab in multiparm folder?
7776 9 4-
- misterbk
- Member
- 20 posts
- Joined: July 2012
- Offline
-
- edward
- Member
- 8063 posts
- Joined: July 2005
- Online
-
- misterbk
- Member
- 20 posts
- Joined: July 2012
- Offline
-
- hale38
- Member
- 1 posts
- Joined: April 2016
- Offline
-
- martinkindl83
- Member
- 281 posts
- Joined: Nov. 2014
- Offline
-
- UtilitasArts
- Member
- 16 posts
- Joined: April 2021
- Offline
-
- vikus
- Member
- 243 posts
- Joined: May 2017
- Offline
Currently there is no event handling when switching the tab menu and it is also not possible to set a default tab menu. I think they are treated as simple visibility property. A workaround is to create a separate button/toggle as a multi-parm instance which allows to set the current instance manually. You can then store the currently selected state in a separate parameter and read the data elsewhere.

There is an example in the hip file, have a look at the code in the Python module.
There is an example in the hip file, have a look at the code in the Python module.
Image Not Found
-
- UtilitasArts
- Member
- 16 posts
- Joined: April 2021
- Offline
-
- vikus
- Member
- 243 posts
- Joined: May 2017
- Offline
viklcSee: setMultiParmTabInEditors [www.sidefx.com]
it is also not possible to set a default tab menu
-
- m-cg
- Member
- 16 posts
- Joined: Jan. 2021
- Offline
https://www.sidefx.com/docs/houdini/hom/hou/ParameterEditor.html [www.sidefx.com]
The multiParmTab function gives a 0-based index of the selected tab.
The argument is the name of the parm, not a hou.Parm object.
Get the ParameterEditor by something like hou.ui.paneTabOfType(hou.paneTabType.Parm).
There are others like hou.ui.paneTabUnderCursor().
The multiParmTab function gives a 0-based index of the selected tab.
The argument is the name of the parm, not a hou.Parm object.
Get the ParameterEditor by something like hou.ui.paneTabOfType(hou.paneTabType.Parm).
There are others like hou.ui.paneTabUnderCursor().
Edited by m-cg - Jan. 31, 2025 11:27:09
-
- Quick Links