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

AlecJames

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Can I get the orientation of another item/object?
« on: October 13, 2011, 01:37:47 pm »

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

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: Can I get the orientation of another item/object?
« Reply #1 on: October 13, 2011, 01:52:49 pm »

Answered my own question :)

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

Its in the manual under GetAttributeQuaternion.
Logged