DOP VEXpression Variable_name

   536   5   1
User Avatar
Member
28 posts
Joined: 7月 2013
Offline
hi,
How can I find out the DOP parameter variable names?

Most of the time no errors occur using variable name by tooltip-message,
but sometimes an error occurs due to the variable name.

In popwind(DOP), Wind_Velocity(x) shows "windx", but it will not work correctly unless it is actually wind.x.

In other case, popFanCone(DOP), Position(X) shows "tx",
but tx, t.x, positionx, position.x, all of these will cause an error.

thanks

Attachments:
DOP_VexVar.png (56.3 KB)

User Avatar
Member
507 posts
Joined: 11月 2016
Online
t.x, t.y, t.z work for me.
User Avatar
Member
28 posts
Joined: 7月 2013
Offline
thanks

//correct ()
vector center = (t.x, t.y, t.z);

//incorrect {}
vector center = {t.x, t.y, t.z};

t.x work well fot me too.
User Avatar
Member
9143 posts
Joined: 7月 2007
Offline
Noboru Saka
thanks

//correct ()
vector center = (t.x, t.y, t.z);

//incorrect {}
vector center = {t.x, t.y, t.z};

t.x work well fot me too.

or use
vector center = t;
since t is the actual parameter name as well as the variable name coming to VEXpression snippet inside
or of course you can use t instead of wherever you use center directly
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
507 posts
Joined: 11月 2016
Online
Noboru Saka
//incorrect {}
vector center = {t.x, t.y, t.z};

As a rule, the curly braces will only accept constants, no variables.
User Avatar
Member
28 posts
Joined: 7月 2013
Offline
I normally use { } for Vector types ex.{0,1,0}, so I thought it was strange that an error occurred in this case.
I'm happy I now know the reason.
thanks
  • Quick Links