Jump to content

Compare String Array against @name on packed prims

Recommended Posts


First time poster (also posted on sidefx forums) ~

I have a wrangle set after an assemble sop and am currently having success with:

string shatter_points = chs('Pieces_to_Break');
if(@name != shatter_points)

Where Pieces_to_Break can contain one name. Effectively this deletes all but the named packed primitive.

I'd like to amend this so that I can enter an array of pieces to “keep”. Any thoughts?

Thanks in advance!!

Share this post

Link to post
Share on other sites

Solution thanks to Thomas Slancik ~

string pattern = chs('Pieces_to_Break');
if(match(pattern, @name)) removepoint(0,@ptnum);


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now