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

   4740   1   0
User Avatar
Member
5 posts
Joined: 11月 2018
オフライン
how to get the P.x (only x) in vex like in the expression.

Attachments:
12129.png (92.9 KB)

User Avatar
Member
9386 posts
Joined: 7月 2007
オフライン
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 - 2018年11月12日 13:57:04
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links