Anim8or Community
General Category => ASL Scripts => Topic started by: dancingshoes on January 03, 2017, 08:33:52 am
-
In the scene mode I'm trying to orient an object by using an expression script with GetAttributeQuaternion(name_of_another_object,"orientation").
However it seems to return (0,0,0,0).
Does GetAttributeQuaternion work with orientation? Any examples/tutorials?
GetAttributePoint3(name_of_another_object,"position") seems to work fine for position.
Thanks.
-
Yes, this is a bug. Quaternion, float and Boolean attributes that don't have a controller always were returning 0. I'll fix it in the next build.
#098-098 - GetAttributeQuaternion() always returns 0.
Note: the value it returns is the element's relative orientation to it's parent. If it's parent is the "world" then it's the absolute value of course.
-
Thank you! (And for all the work!)