kerrmotion Posted March 15, 2017 Share Posted March 15, 2017 Hello! 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) removepoint(0,@ptnum); 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!! Quote Link to comment Share on other sites More sharing options...
kerrmotion Posted March 15, 2017 Author Share Posted March 15, 2017 Solution thanks to Thomas Slancik ~ string pattern = chs('Pieces_to_Break'); if(match(pattern, @name)) removepoint(0,@ptnum); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.