How to create a multi-select menu with check to HDA?
2482 12 4- misakacirno
- Member
- 23 posts
- Joined: Oct. 2021
- Offline
- animatrix_
- Member
- 4685 posts
- Joined: Feb. 2012
- Offline
Hi,
You can do it with this option:
You can do it with this option:
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
- misakacirno
- Member
- 23 posts
- Joined: Oct. 2021
- Offline
- GlenD
- Member
- 118 posts
- Joined: Dec. 2013
- Offline
You could use an import block to bring in the Group node and then set what you don't want to Invisible. https://www.sidefx.com/forum/topic/76409 [www.sidefx.com]
Glen
Glen
Edited by GlenD - April 18, 2023 04:35:47
- animatrix_
- Member
- 4685 posts
- Joined: Feb. 2012
- Offline
misakacirnoanimatrix_
Hi,
You can do it with this option:
Thanks for your reply, that's the method I'm using, but I want the selected item to have a tick mark to indicate it is selected like the Group node, is there any way to do that?
From what I know the checkmark only shows for single selection options, not the multi selection ones. So try using Replace ( Field + Single Selection Menu) option.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
- misakacirno
- Member
- 23 posts
- Joined: Oct. 2021
- Offline
GlenDThank you for your answer, but instead of referencing the Group node's parameter in my HDA panel, I want to create a String parameter and have a similar menu with the "√" symbol.
You could use an import block to bring in the Group node and then set what you don't want to Invisible. Your text to link here... [www.sidefx.com]
Glen
- misakacirno
- Member
- 23 posts
- Joined: Oct. 2021
- Offline
animatrix_misakacirnoanimatrix_
Hi,
You can do it with this option:
Thanks for your reply, that's the method I'm using, but I want the selected item to have a tick mark to indicate it is selected like the Group node, is there any way to do that?
From what I know the checkmark only shows for single selection options, not the multi selection ones. So try using Replace ( Field + Single Selection Menu) option.
I tried it, and neither seemed to have the same effect.
- Tyler Britton2
- Member
- 85 posts
- Joined: April 2014
- Offline
- jsmack
- Member
- 8038 posts
- Joined: Sept. 2011
- Offline
- Tyler Britton2
- Member
- 85 posts
- Joined: April 2014
- Offline
- jsmack
- Member
- 8038 posts
- Joined: Sept. 2011
- Offline
Tyler Britton2
Awesome, thanks. I am dynamically building the menu through Python, I guess I would have to query the parameter, find which one is selected, then add the checkmark to the label, is that correct?
That's what I was thinking.
Tyler Britton2
Do you happen to have any code for this?
Sorry, just a random thought, not tested.
- alp1337
- Member
- 1 posts
- Joined: Dec. 2023
- Offline
- ObeidaZakzak
- Member
- 119 posts
- Joined: Dec. 2019
- Offline
Checkmarks seem to be available on menus built with HDK only (I only see them on compiled nodes), I couldn't find a way to do this when building an HDA, in many cases the trick is to promote a parameter that already has that menu with checkmark (group parameter in most cases).
As said by @jsmack, a checkmark string can help here, I tried this and it works fine :
As said by @jsmack, a checkmark string can help here, I tried this and it works fine :
a = ("a", "A") b = ("b", "B") pairs = [a, b] menu = [] for p in pairs: menu.append(p[0]) if p[0] in hou.evalParm("my_list").split(" "): menu.append(p[1] + " ✓") else: menu.append(p[1]) return menu
Houdini Pipeline Supervisor @ TAT Studio
-
- Quick Links