Jump to content

vex - removepoint not working


TomRaynor

Recommended Posts

Not really an answer to your question of why it doesnt work, but in an attribwrangle, the following works:

 

int condition = (@P.x > 0) ? 1: 0; // short form if() test

if (condition){

    @Cd = set( condition, 0, 0);      // color red

    removepoint(geoself(), @ptnum);       // if true remove points

}
Link to comment
Share on other sites

Really weird. I would have expected it to work the same way with the point wrangle unless I am missing something...

I might ask sidefx.

Thanks.

Yeah well Point Wrangle is VEX and Attrib Wrangle is CVEX, so there is a difference.

Link to comment
Share on other sites

Hi Tom,

 

Point Wrangle uses the point only SOP VEX context which doesn't allow you to do anything other than modify point attributes.

 

The more general CVEX context for geometry which the Attribute Wrangle uses, allows you to modify prim/point/vertex/detail attributes as well as create/modify/destroy primitives and points.

  • Like 2
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.

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