How to iterate over groups in H16.5?
16482 4 1-
- Nicolas Fisch
- Member
- 6 posts
- Joined: 1月 2016
- Offline
Hello dear Community,
in earlier versions I could iterate over groups with the old for-each networks. How would I do that in the current version? I grouped Prims in several groups and now I want to perform a set of actions on each group. I don't see any option for that in the new nodes. Can someone help me out here?
Best regards,
Nicolas
in earlier versions I could iterate over groups with the old for-each networks. How would I do that in the current version? I grouped Prims in several groups and now I want to perform a set of actions on each group. I don't see any option for that in the new nodes. Can someone help me out here?
Best regards,
Nicolas
-
- Enivob
- Member
- 2637 posts
- Joined: 6月 2008
- Offline
There is a special syntax where you use the ‘group’ prefix to access groups inside of a wrangle. So it is easy to examine the contents of a group with an IF statement.
So the actual group name is ‘grp_RED’ not ‘group_grp_RED’.
if (@group_grp_RED) { v@Cd = set (1,0,0); } if (@group_grp_GREEN) { v@Cd = set (0,1,0); } if (@group_grp_BLUE) { v@Cd = set (0,0,1); }
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
-
- Olaf Finkbeiner
- Member
- 323 posts
- Joined: 1月 2015
- Offline
-
- bonsak
- Member
- 459 posts
- Joined: 10月 2011
- Offline
-
- urdro
- Member
- 2 posts
- Joined: 4月 2015
- Offline
-
- Quick Links