Create Drop Down Menu from a String Array?

   336   1   1
User Avatar
Member
1010 posts
Joined: April 2017
Offline
Hi!

I've have an array automatically generated depending on what geo I input. It gives me a list of names like this:

{ GeoA, Tube, Box }

I would like a node to have a string parameter with a drop down menu (or whatever the technical name is) already populated with the name from my array. (fake exemple in my image below). Any tips?

-Olivier
Edited by olivierth - Jan. 25, 2024 10:20:50

Attachments:
Houdini_DropDownMenu_from_Array_01.JPG (6.4 KB)

User Avatar
Member
8583 posts
Joined: July 2007
Offline
Here is an example of menu script of all unique values of a string attribute, but it can be altered to show values from an existing attrib array if this is not your use case, is it stored as a detail attrib?

https://www.sidefx.com/forum/topic/93685/#post-408934 [www.sidefx.com]
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links