Anim8or Community
General Category => ASL Scripts => Topic started by: AlecJames 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
-
Answered my own question :)
$orientation = GetAttributeQuaternion("MyMasterWheel","orientation");
Its in the manual under GetAttributeQuaternion.