Jump to content
Christoph_H

Beginner VEX variable questions

Recommended Posts

Hi,
I have a little question.

What exactly describes the variable @npt and @npts in VEX?
Is this the same as @numpt?

 

thanks.

Edited by Christoph_H

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

@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

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×