General Category > ASL Scripts

GetAttributeQuaternion(...,"orientation")

(1/1)

dancingshoes:
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.

Steve:
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.

dancingshoes:
Thank you! (And for all the work!)

Navigation

[0] Message Index

Go to full version