Search - User list
Full Version: Radio Buttons Usage?
Root » Houdini Lounge » Radio Buttons Usage?
tamte
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
I'm actually curious about this too.
graham
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
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.
Eche
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
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
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB