First post, hope it's not ignorant.
How can I use a Python script to obtain the exact coordinates of an object? I have not been able to find out how to do this in the documentation. Please forgive me if this is a stupid question.
Background: The object location (in fact transformation - so location/scale/rotation) is not quite as straightforward as you might think.
To get the input location you can simply do:
To get the output transformation you can only do this by accessing the worldspace matrix.
You may want to get the loc/rotation/scale, in that case:
If you want to test the location for example, you can set the cursor position.
Or you can create a new empty:
... note, if the matrix contains shear, you wont see this in the empty, for that try the MathVis addons.