Hey guys,
I'm having a little problem in VEX with if statement, I want to give all “slabs” the strength of 2 but I can't figure it out how can I get all the “slabs” because all of them have different names.
Getting all attributes values
983 2 0- temzy
- Member
- 7 posts
- Joined: Feb. 2017
- Offline
- tamte
- Member
- 8573 posts
- Joined: July 2007
- Online
look at match() function
https://www.sidefx.com/docs/houdini/vex/functions/match.html [www.sidefx.com]
so in your case something like
https://www.sidefx.com/docs/houdini/vex/functions/match.html [www.sidefx.com]
so in your case something like
... if (match("slab*", s@names)){ ...
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- temzy
- Member
- 7 posts
- Joined: Feb. 2017
- Offline
-
- Quick Links