I’m working on a script that needs to rotate a posed bone over its length, in the modeling window this is done easily by selecting the transform orientation to “normal” or “gimbal” and rotate away!
However, how do I add that kind of rotation in a script ?
I tried this:
rotq.w=radians(45) #let’s rotate 45 degrees
rotq.z=1#over the z-axis
Which was obviously wrong,
then I just thought to do this:
none of these work, obviously because I do not know what I’m doing…
Any of you know where I went wrong,