[Bf-python] local rotation

Yuniel Castro González ycastrog at estudiantes.uci.cu
Thu May 26 05:33:24 CEST 2011


Hello to all.
I have a cylinder in the scene that was rotated to world coordinates, then I need to rotate about its axis 'Y', with local coordinates and using a script.
I think that this function is related to the topic, but I do not use it well.

bpy.ops.transform.rotate(value=(0.191027,), axis=(0.338614, -0.757322, 0.558394), constraint_axis=(False, False, True), constraint_orientation='LOCAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=4.59497, snap=False, snap_target='CLOSEST', snap_point=(0, 0, 0), snap_align=False, snap_normal=(0, 0, 0), release_confirm=False)

How can I use it?
Thanks in advance.





-- 








Yuniel 



More information about the Bf-python mailing list