get the P.x (only x) in vex like in the expression.

   4807   1   0
User Avatar
Member
5 posts
Joined: Nov. 2018
Offline
how to get the P.x (only x) in vex like in the expression.

Attachments:
12129.png (92.9 KB)

User Avatar
Member
9420 posts
Joined: July 2007
Offline
you either do:
vector P = point(0, "P", @ptnum);
float Px = P.x;

or
float Px = vector(point(0, "P", @ptnum)).x;

or if it's really just the first component (x) that you want to get you can as well do
float Px = point(0, "P", @ptnum);
Edited by tamte - Nov. 12, 2018 13:57:04
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links