Hi there.
I´m doing an addon to be able to modify the object pivot manually, you activate a button, then you get an axis that you can translate, rotate and scale, and when you are done you press again that button and the object pivot changes, but JUST THE PIVOT
So far I´m having problems with rotations, I´m trying to do this using delta transforms, so far what I do is to get the euler or quaternionr (I ried with both) rotation of the axis object i´ve created, then I apply that rotation in the Delta Transforms of the target object, after that I apply the same value but multiplied by “-2” to counteract the delta transform effect, so far the counter action don´t seem to work until you apply the rotation, then the object should stay the same but the pivot should be rotated.
And of course… it´s not working at all probably because that thing of appiying to the rotation the -2 of the rotation of the other object is a non-sense that I don´t know when grew up in my mind.
So… so far what I want to give to the user is to be able to rotate that axis and when the user is finishes the object stays visually the same (without modifying the geometry inside it) but the axis gets rotated.
Can someone please help me here, I´m a bit lost, the functionality is similar to the one found in 3dsmax named “affect pivot only” where you can transform the object´s pivot without affecting the objects´s inside.
Cheers and thanks in advance!