Getting object positions relative to another object's local space?
Thanks to Insanto and Anubis I have found two ways to do what I needed below!
1. theCoords = ($Box01.transform * (inverse $Plane01.transform)).pos
2. theCoords = in coordsys $Plane01 $Box01.pos
Hello, I'm having trouble getting object's positions relative to another object's rotation & position (transform). See example below:
I'm trying to get the coordinates of this box relative to this plane's local coordinates. The XYZ coords it should return in this case would be (0,-20,-25).
I have tried
in coordsys $Plane01 $Box01
but it returns the value of the Box's coordinates in world space.. something like (0, 3.536, 46.481)
I've managed to move the box in Plane01's world space using in coordsys $Plane01 move $Box01 [0,0,1] which is a tease but this is not what I need. Did I miss something here? I've looked all over in the documentation. I've included the example scene. Thanks for any help!