Getting the current Gizmo matrix with Python in 2.8


#1

Is there any way I can get the position and orientation of the current gizmo with python?
I need it particularly for the Scale and Move gizmos.

Let’s say I have some faces selected and the Transform Orientation is set to Normal.
I want to position and orient an Empty exactly where the Move gizmo is.

I’m trying to do this manually by checking the current Transform Orientation, Pivot settings etc. and averaging the position of the different elements in the selection, but in Normal orientation it gets tricky and I couldn’t get the same orientation as the Gizmos. It would be great if there is an easy way :slight_smile:


How do I get the transform manipulator's vector values?