first i tried with handlers with weird results; to make it short, take this script snippet as an example:
when transform $controller changes do ( print ($controller.rotation as eulerAngles))
Anyone can tell me why my controller rotation is being updated during transformation correctly only on X axis, having a bizarre behaviour on Y axis and not being updated at all on Z axis?!?
So i tried with the registerRredrawViewportsCallback mechanism and i found the controller rotation being updated correctly during trasformation but now the problem is in the destination object rotation setting. Even if i force the .rotation setting and a cache flushing at every callback the destination object is updated only at the end of the controller transformation.
Any suggestions? Thanks.