Filtering points by name attribute

   339   2   1
User Avatar
Member
8 posts
Joined: Nov. 2022
Offline
hi everyone,
How can I group a selection of points/joints using VEX in this case? Let's say I only want to group all points named "spine". I believe I will have to set a specific if statement to my name attribs to achieve it but I'm not sure how to proceed with it.

I'm aware there are many ways to group specific points (group node, delete joints SOP) but I just want to try it out using vex cause then I think I can have further control on my selection type for future cases while keeping it procedural not only for one, but many more skels. Thanks everyone!

PD: do you guys recco any source to start digging into modifying/creating VEX groups by attributes?

Attachments:
image_2024-03-01_140930630.png (530.6 KB)

User Avatar
Member
8554 posts
Joined: July 2007
Offline
you can use match() function to detect whether string matches the pattern, similarly to patterns in group parameters
i@group_spine = match("spine*", s@name);
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
8 posts
Joined: Nov. 2022
Offline
TY Tom, will try it out!
  • Quick Links