Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: GetAttributeQuaternion(...,"orientation")  (Read 759 times)

dancingshoes

  • Newbie
  • *
  • Posts: 19
    • View Profile
GetAttributeQuaternion(...,"orientation")
« on: January 03, 2017, 01:33:52 pm »

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.
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1520
    • View Profile
Re: GetAttributeQuaternion(...,"orientation")
« Reply #1 on: January 03, 2017, 10: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.

« Last Edit: January 04, 2017, 05:16:41 pm by Steve »
Logged

dancingshoes

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: GetAttributeQuaternion(...,"orientation")
« Reply #2 on: January 04, 2017, 11:09:16 am »

Thank you! (And for all the work!)
Logged