konstantin magnus Posted June 15, 2017 Share Posted June 15, 2017 (edited) I would like to write primvertexcount(0, @primnum)>4 directly inside the group field of a polyextrude node (expecting a substitute for $NVTX > 4). How can I make this work? Edited June 15, 2017 by konstantin magnus Quote Link to comment Share on other sites More sharing options...
Atom Posted June 15, 2017 Share Posted June 15, 2017 (edited) I think the problem with that approach is you are only going to get one primitive as your result, which is what $NVTX > 4 produces. The group field does not iterate through the @primnums. If you place code in a wrangle running over primitives you can collect up all primitives that match the IF statement. Then just reference that group name in the polyextrude. Edited June 15, 2017 by Atom Quote Link to comment Share on other sites More sharing options...
acey195 Posted June 19, 2017 Share Posted June 19, 2017 On 6/15/2017 at 11:05 PM, Atom said: (image) you can also just type: @group_toExtrude = (primvertexcount(0, @primnum) < 4); //this is safer because the group will always be created (even if it is empty) that way you do not have issues using the groupPromote operation for instance //or even simpler (run over prims): @group_toExtrude = (@numvtx < 4); 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.