You could also retrieve the current matrix of the gizmo with BaseObject.GetModelingAxis.

Cheers,
Maxime