I am trying to find the coordinates of Object1 in the local coordinates of Object2. Neither Object1 nor Object2 are the object that the python code is attached to.
I can find the location of the 3D cursor relative to my active object using: co_find = context_act.matrix_world.inverted() * context.sce.objects['Cube001']
But I do not know how to find the location of Object1 in the local coordinate system of Object2.
Does anyone know how to do this?