TomRaynor Posted June 25, 2014 Share Posted June 25, 2014 Anyone have any idea why the removepoint() vex expression doesn't work in the following example? removePointVex_v01.hip Quote Link to comment Share on other sites More sharing options...
ophamletsen Posted June 25, 2014 Share Posted June 25, 2014 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 } Quote Link to comment Share on other sites More sharing options...
Skybar Posted June 25, 2014 Share Posted June 25, 2014 It works with Attrib Wrangle yes. I'm not that familiar with vex, but can you add/remove geo out of cvex? Quote Link to comment Share on other sites More sharing options...
TomRaynor Posted June 25, 2014 Author Share Posted June 25, 2014 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. Quote Link to comment Share on other sites More sharing options...
Skybar Posted June 25, 2014 Share Posted June 25, 2014 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. Quote Link to comment Share on other sites More sharing options...
old school Posted June 25, 2014 Share Posted June 25, 2014 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. 2 Quote Link to comment Share on other sites More sharing options...
TomRaynor Posted June 25, 2014 Author Share Posted June 25, 2014 Perfect! Thanks for clarifying this Jeff! 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.