Asset: toggle switch by clicking on tabs?
4776 7 1- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
Hi, I poste this in “Houdini Indie and Apprentice” but got no replies so far:
Lets say I have a sphere, box and platonic connected to a switch. I would like the parameters of the asset to contain folders (radio button) for each geo. If I click on “box”, it should change the switch the “Select Input” to 1, etc.
How can I link the switch to the folder in the parameters?
-Olivier
Lets say I have a sphere, box and platonic connected to a switch. I would like the parameters of the asset to contain folders (radio button) for each geo. If I click on “box”, it should change the switch the “Select Input” to 1, etc.
How can I link the switch to the folder in the parameters?
-Olivier
- goldfarb
- スタッフ
- 3463 posts
- Joined: 7月 2005
- Offline
- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
- goldfarb
- スタッフ
- 3463 posts
- Joined: 7月 2005
- Offline
- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
I could only change the name of the first folder. all other folders had their name greyed out until I changed them all to tabs. After that I changed the names to :
folder
folder1
folder2
folder3
…and changed them back to radio buttons. Now the names are ok. I also changed the Switch sop path to ch(“../folder”) but I still get an error:
Warning
Bad parameter reference: “../folder” in parameter /obj/wood_floor_generator/Oli_wood_floor_generator/switch_pattern1/input.
By the way, thanks for helping out!
-Olivier
folder
folder1
folder2
folder3
…and changed them back to radio buttons. Now the names are ok. I also changed the Switch sop path to ch(“../folder”) but I still get an error:
Warning
Bad parameter reference: “../folder” in parameter /obj/wood_floor_generator/Oli_wood_floor_generator/switch_pattern1/input.
By the way, thanks for helping out!
-Olivier
- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
Ok, so I found a way to make it work. It's a bit odd how it works and I don't fully understand it.
1. in the type properties, I created all my folders.
2. I set the first one's Name to geo_type
3. I set all folders to be radio buttons
4. In the switch, I used the channel expression: ch(“../geo_type1”)
…I don't understand it works since none of the folders' names match the channel's geo_type1 . The names of my folders are:
geo_type
geo_type_1
Anyone knows why? Anyways, I found the solution here:
http://takavfx-note.tumblr.com/post/128059754537/radio-button-tab-menu-in-houdini [takavfx-note.tumblr.com]
-Olivier
1. in the type properties, I created all my folders.
2. I set the first one's Name to geo_type
3. I set all folders to be radio buttons
4. In the switch, I used the channel expression: ch(“../geo_type1”)
…I don't understand it works since none of the folders' names match the channel's geo_type1 . The names of my folders are:
geo_type
geo_type_1
Anyone knows why? Anyways, I found the solution here:
http://takavfx-note.tumblr.com/post/128059754537/radio-button-tab-menu-in-houdini [takavfx-note.tumblr.com]
-Olivier
- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
- JohnDraisey
- Member
- 9 posts
- Joined: 3月 2016
- Offline
-
- Quick Links