I want to create a lamp in blender using python. I want to give the lamp some rotation. As per the documentation I can set the initial rotation using a tuple of numbers in the function call like this rotation=(0.0, 0.0, 0.0)
this is the specifc documentation for the rotation parameter:
rotation: (float array of 3 items in [-inf, inf], (optional)) – Rotation, Rotation for the newly added object
What units is this parameter specified with? It does not seem to be in degrees or radian.
When I try with my example code here where I use rotation=(0, 1, 0)
to get 1 degree on the y axis. I end up getting 57.296
degrees after running the code.
import bpy
bpy.ops.object.lamp_add(type='AREA', view_align=False, location=(0, 0, 0), rotation=(0, 1, 0), layers=(True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False))