vfxhound Posted July 22, 2016 Share Posted July 22, 2016 Hi guys, a friend was asking if he had some moving points and for example there's a group by bounding box, so some points enter the group for a few frames. Is there a way to delete those points from the entire sequence? I was wondering the same thing myself, so I gave it a go using a SOP Solver. Check out the example file. delete_red.hipnc Quote Link to comment Share on other sites More sharing options...
3dome Posted July 22, 2016 Share Posted July 22, 2016 (edited) //point wrangle if (@group_red == 1) { removepoint(0, @ptnum); } Edited July 22, 2016 by 3dome Quote Link to comment Share on other sites More sharing options...
vfxhound Posted July 22, 2016 Author Share Posted July 22, 2016 Yes, but he wants to delete them (or color them) before they enter the group, like this example file delete_red3.hipnc Quote Link to comment Share on other sites More sharing options...
3dome Posted July 22, 2016 Share Posted July 22, 2016 so they already should be deleted in the first frame? based on them entering the bounding box later? In your file, enable delete_red_points, the result at OUT_WITH_SOLVER is what you want to achieve? if yeah, then point wrangle with if(@P.y <= 1.3) {removepoint(0, @ptnum)} 1.3 is half the height of your bounding volume use expression to make it procedural 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.