Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

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

dancingshoes

  • Newbie
  • *
  • Posts: 27
    • View Profile
GetAttributeQuaternion(...,"orientation")
« 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.
Logged

Steve

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

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

dancingshoes

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

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