i have made an interface from Radio Button type folders and I want to use it in Switch SOP to switch between the inputs.
How can i access the information about active radio button by expression?
Or is there some other way of using Radio Buttons?
Allegro
2010年7月23日 11:36:37
I'm actually curious about this too.
graham
2010年7月23日 11:45:02
Like this?
The folder set is named “folders”. To access it with an expression you need to access the first element in the set, so ch(“../folders1”).
This method works for any type of folders, not just Radio buttons.
Nicolas Heluani
2016年2月14日 07:08:26
Graham,
I've tried your solution on a Digital Asset but it does not seem to recognize the folder name. No matter what I do Houdini transform the name of the folder adding a number when placing the asset onto the scene, and I am pretty sure the name is original.
Necro thread... the answer is: you need to set the channel reference to the name of the second folder.
Folder Name
folders,folders_1,folders_2 ......
Accessing to the flag
ch("../folders1")
I don't know why.....this is not in the docs.
ubietyworld
2025年7月17日 13:44:39
Resurrecting the necro thread in AD 2025 to say "lol, wtf"?
Works like a charm, but how did you even figure that out? Both selecting the second folder, and removing the underscore. Must have been a lot of silly trial and error.
Appreciate you suffering on all our behalf.
vicvvsh
2025年7月18日 14:18:25
ubietyworld
Resurrecting the necro thread in AD 2025 to say "lol, wtf"?
Works like a charm, but how did you even figure that out? Both selecting the second folder, and removing the underscore. Must have been a lot of silly trial and error.
Appreciate you suffering on all our behalf.
We can get all parameters of the node (and hda) and parameter's name respectfully by running this python code:
node_parms = hou.node("node_path").parms()
for p in node_parms:
print(p.name())
Just use parameter's name in expression.