Anim8or Community

General Category => ASL Scripts => Topic started by: dancingshoes on January 03, 2017, 08:33:52 am

Title: GetAttributeQuaternion(...,"orientation")
Post 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.
Title: Re: GetAttributeQuaternion(...,"orientation")
Post by: Steve on January 03, 2017, 05:45:44 pm
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.

Title: Re: GetAttributeQuaternion(...,"orientation")
Post by: dancingshoes on January 04, 2017, 06:09:16 am
Thank you! (And for all the work!)