Datasets:
File size: 644 Bytes
e27853f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import bpy
import math
import numpy as np
# Accessing the light objects
lamp_on_the_cupboard = bpy.data.objects['lamp_on_the_cupboard']
lamp_on_shelf = bpy.data.objects['lamp_on_shelf']
light_on_ceilling = bpy.data.objects['light_on_ceilling']
lamp_on_the_cupboard.data.energy = 0.5
lamp_on_shelf.data.energy = 2.5
light_on_ceilling.data.energy = 400
lamp_on_the_cupboard.data.color = (0.8, 0.9, 1)
lamp_on_shelf.data.color = (0.5, 0.7, 1)
light_on_ceilling.data.color = (1, 0, 0)
# The basketball location (Object name: 'basketball')
basketball = bpy.data.objects['basketball']
basketball.location = (14.4023, 2.7485, 0.1584) |