General Category > ASL Scripts

Can I get the orientation of another item/object?

(1/1)

AlecJames:
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

AlecJames:
Answered my own question :)

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

Its in the manual under GetAttributeQuaternion.

Navigation

[0] Message Index

Go to full version