Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = (
|
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"]
|