hi i would like to make scrips that by pressing 1 button the object makes rotate animations 360° from VIEW orientation. i cant find help how to do it. how i change this code to make it rotate on self axis from ( VIEW )
hi thanks for answering me someone finally. yes i understand this but this would is changing only Z axis on Global Orientation, and not VIEW orientation. i see now its some kind of bug in blender or badly coded? because >>>> if i set Transform Orientation to VIEW, rotate object and click on constraint axis Z option. then its working, but when i copy it to Text Editor window and run that script then its still working like from global orientation.
can someone explain me where is the logic of this?
set in 3D view the orientation mode to Global and then click on white circle and rotate the object.
then copy the code and run it as script in Text Editor window. or just press F6 and see that it is not set up automatically to View orientation.
another try. set in 3D view the orientation mode to VIEW and then click on white circle which should be the Z axis and rotate the object. then press F6 and change the degree. you see that if you look at object from different angle then the rotation remains still same. but if you click on Constraint axis Z and change degree in F6 mode, then the object clears its rotation but then rotates from the angle View around its Z axis.
so if you copy now the code and run the script then its still not dependent of the VIEW orientation