Hi Christian,
thanks for the fast response. No worry, sometimes it is hard to describe.
The idea is to save me some line of code, cause i guess it is already inside of VRED.
Lets start from zero:
1. I have a line in VRED which present my direction vector. This line should be the new rotation axis.
2. My script is calculating the direction vector and set the rotation pivot orientation for the group the user wants to animate.
3. The user can now put in a value and choose the axis, and the group gets rotated around the new axis.
The script can directly use anim_group.setRotationAsEuler(QVector3D(0,0,33)) (for example)
4. The user wants to move the group along the new axis, just typing in a value an choosing the axis.
5. Now it would be nice, to directly use anim_group.setTranslation(QVector3D(50,0,0)) (for example)
But for sure, it takes the local space and not along the custom axis.
I can write a function to get the new position with a given vector and a distance. I guess this is what happens anyway internal when the user use local mode in viewport. So it calculates the direction vector from the rotation pivot orientation values? and sets the new postion x,y,z with a proper math function.
So at the end it is just the question or as far i can imagine from your answers, more like a "nice to have", setRotationAsEuler takes the rotation pivot orientation into account, is setTranslation able to do aswell?
Maybe it is just me who needs this to save some line of code. 😉
