Jump to content

Group create vex removeprim


Recommended Posts

Hi Nemiko,

Just from your example,

In the first line of your code you are comparing a string to and int which wont work,

You also cant add a primitive to a group if it doesnt exist,  So to simplify things I would first add the prims that you want to delete to a group then delete them outside of thte wrangle.

In your second if statement you are also using @ptnum where the function is expecting a primitive number (@primnum).

There also seems to be a mixture of incorrect attribute types.

Not knowing the full context, I would say that your wrangle should look more like ths :

if ( @name == "-1") 

this will add any prim to the the group "myprimgroup" that has an attibute value of "-1" for the name attribute.

Then you can just delete it after the wrangle.

Hope this helps


Link to comment
Share on other sites

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.

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...