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: Can I get the orientation of another item/object?  (Read 5207 times)

AlecJames

  • Full Member
  • ***
  • Posts: 234
    • View Profile
Can I get the orientation of another item/object?
« on: October 13, 2011, 09:37:47 am »

I've got a wheel in a scene that is rotating according to its own ASL script.  I have another 3 wheels that I want to all have the same orientation.

I tried putting in the controller script

$orientation = $MyMasterWheel.orientation;

but I get a script error "undefined identifier $MyMasterWheel".

MyMasterWheel is the oject name name in the scene object parameters.  Can I access another object in a script?  If so how?
Thanks
A
Logged

AlecJames

  • Full Member
  • ***
  • Posts: 234
    • View Profile
Re: Can I get the orientation of another item/object?
« Reply #1 on: October 13, 2011, 09:52:49 am »

Answered my own question :)

$orientation = GetAttributeQuaternion("MyMasterWheel","orientation");

Its in the manual under GetAttributeQuaternion.
Logged