Radio Buttons Usage?

   12000   4   4
User Avatar
Member
8583 posts
Joined: July 2007
Offline
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?
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
696 posts
Joined: March 2006
Offline
I'm actually curious about this too.
Stephen Tucker
VFXTD
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
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.

Attachments:
drive_switch_by_folders.hipnc (41.7 KB)

Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
280 posts
Joined: Dec. 2015
Offline
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.
https://www.imdb.com/name/nm8408875/ [www.imdb.com]
User Avatar
Member
38 posts
Joined: Feb. 2018
Online
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.
  • Quick Links