I would like to know if there is a easy way to get the location of the current selection? (The one used by translate/rotate/scale, and depending on selected elements and the center options like median/active element/bbox/3d cursor.)
Or to put it differently is there a way to get the 4x4 matrix of the manipulator? So I can grab the current orientation and position in one go.
I'm aware of the set_cursor_to_selected() operator, which allows me to grab this location via the 3d_cursor location. but as I'm running it several times per second this locks away the 3d cursor and spams the info log. And it feels hacky and clunky...
So if there is a more elegant way than to recreate the blender behaviour, I would be very interested..