Getting all attributes values

   984   2   0
User Avatar
Member
7 posts
Joined: Feb. 2017
Offline
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.

Attachments:
vex.png (484.4 KB)

User Avatar
Member
8575 posts
Joined: July 2007
Offline
look at match() function
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
User Avatar
Member
7 posts
Joined: Feb. 2017
Offline
Thanks, it works
  • Quick Links