I created a curve with several points. Now I want to delete some points based on one of their attribute (will_be_removed).
As is shown in the picture above, those points with i@will_be_removed
set to 1 will be removed.
I tried using the VEX code below but it said invalid subscript for type: int.will_be_removed
if(@ptnum.will_be_removed == 1)
{
removepoint(0, @ptnum);
}
How can I correctly reference those points?
I think I figure out a way to do it. Use @will_be_removed instead of @ptnum.will_be_removed instead:
if(@will_be_removed == 1)
{
removepoint(0, @ptnum);
}