declaring vector in attributeWrangle and attributeVOP

   3883   3   1
User Avatar
Member
27 posts
Joined: Nov. 2008
Offline
hi,

how do you declare variable as vector xyz instead of float 123 in attribute wrangle node and in attribute vop? and create local variable?

in attribute wrangle, I'm declaring vector as v@attribute1, and in attributeVOP, I'm creating vector using bindExport…

in both cases, it's creating attribute1 vector as attribute1, attribute1, attribute1… how do I create attribute1, attribute1, attribute1? and it's local variable equivalent please? e.g. $ATTRIBUTE1X, $ATTRIBUTE1Y, $ATTRIBUTE1Z

thanks,
alex
User Avatar
Member
8622 posts
Joined: July 2007
Offline
v@attribute1 = 1;
setattribtypeinfo(0, “point”, “attribute1”, “vector”);
addvariablename(0, “attribute1”, “ATTRIBUTE1”);
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
8622 posts
Joined: July 2007
Offline
and in VOPs you use Add Attribute to declare variable and set type info, then bindexport or setattrib to populate values
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
27 posts
Joined: Nov. 2008
Offline
thanks!!
  • Quick Links