radames commited on
Commit
2110222
·
1 Parent(s): 5be8aec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -46,7 +46,6 @@ def generate(
46
  rgb2 = ImageColor.getcolor(color2, "RGBA")
47
  rgb2 = tuple(v / 255.0 for v in rgb2)
48
 
49
- light_position_normed = light_position / 20
50
  # Delete all mesh objects from the scene
51
  bpy.ops.object.select_all(action="DESELECT")
52
  bpy.ops.object.select_by_type(type="MESH")
@@ -110,7 +109,7 @@ def generate(
110
 
111
  # Light
112
  light = bpy.data.objects["Light"]
113
- light.location = (light_position_normed, 0, 2) # Position the light
114
 
115
  # Camera
116
  camera = bpy.data.objects["Camera"]
 
46
  rgb2 = ImageColor.getcolor(color2, "RGBA")
47
  rgb2 = tuple(v / 255.0 for v in rgb2)
48
 
 
49
  # Delete all mesh objects from the scene
50
  bpy.ops.object.select_all(action="DESELECT")
51
  bpy.ops.object.select_by_type(type="MESH")
 
109
 
110
  # Light
111
  light = bpy.data.objects["Light"]
112
+ light.location = (1, 0, 2) # Position the light
113
 
114
  # Camera
115
  camera = bpy.data.objects["Camera"]