Jump to content

trying to delete primitives by 'Attribute_Wrangle'


Recommended Posts

Hi, I'm trying to delete primitives by 'Attribute_Wrangle' based on their attribute value, and the result is not the one I expect, what am I doing wrong?

int a;
for(a=0; a<@primnum; a++)
{
  if(@c1<0.3) removeprim(1,a,1);

in my opinion, this should delete every primitive in the mesh whose value of attribute "c1" is less than 0.3. Instead, it deletes some random primitives (well not random but unrelated ones)

p.s: I know that I can do it easily by 'Blast'-node) 

Link to comment
Share on other sites

  • 6 months later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...