What the difference between $VTX and @vtxnum?

   3070   2   0
User Avatar
Member
45 posts
Joined: Feb. 2008
Offline
What the difference between $VTX and @vtxnum?
Using $VTX with the point-old node gives 0,1,2,3,0,1,2,3,0,1,2,3 etc
Using @vtxnum in the wrangle node gives 0,1,2,3,4,5,6,7,8,9,10,11…
Edited by envil - Feb. 18, 2019 06:03:54
User Avatar
Member
8770 posts
Joined: July 2007
Online
$VTX used to return vertex number within a primitive
@vtxnum returns linear vertex number across the whole geo

to get the same result as with $VTX you can use vertexprimindex(0, @vtxnum);
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
45 posts
Joined: Feb. 2008
Offline
Thank you, Now it is clear!
  • Quick Links