bnp.objects.light¶
-
create_light(name="debug_light", position=[0.0, 0.0, 3.0], rotation=[0.0, 0.0, 0.0], light_type="POINT", radius=1.0, align="WORLD") → bpy.types.Object:¶ Create a light in the current scene. Reference: https://docs.blender.org/api/current/bpy.ops.object.html#bpy.ops.object.light_add
Parameters: - name – The name of the light
- position – The position of the light
- rotation – The rotation of the light
- light_type – The type of the light
- radius – The radius of the light
- align – The align of the light
Returns: light which has bpy.types.Light at light.data