Christoph_H Posted April 17, 2018 Share Posted April 17, 2018 (edited) Hi, I have a little question. What exactly describes the variable @npt and @npts in VEX? Is this the same as @numpt? thanks. Edited April 18, 2018 by Christoph_H Quote Link to comment Share on other sites More sharing options...
jamesr Posted April 17, 2018 Share Posted April 17, 2018 $NPT is the same as @numpt. @npt doesn't work in vex, you'd want to use @numpt or I prefer to use npoints(0) or npoints(1)... and so on, where the number inside () indicates which input you want to pull the info from. Also, you can use npoints() in SOPs as well to stay away from the $NPT syntax which I guess is sort of going away. Quote Link to comment Share on other sites More sharing options...
Christoph_H Posted April 18, 2018 Author Share Posted April 18, 2018 thanks. There's something else I can think of. What describes @elemnum? Quote Link to comment Share on other sites More sharing options...
anim Posted April 18, 2018 Share Posted April 18, 2018 @elemnum contains current element number so when iterating over Points it's the same as @ptnum, over Prims the same as @primnum, over Vertices the same as @vtxnum, over Numbers it's the current number same equivalency for @numelem 1 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.