Jump to content

Beginner VEX variable questions


Christoph_H

Recommended Posts

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

Link to comment
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
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...