Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,7 @@ def add_planet(name, radius, mass, distance_from_sun):
|
|
39 |
planet.animation_data_create()
|
40 |
planet.animation_data.action = bpy.data.actions.new(name="OrbitAction")
|
41 |
start_frame = 1
|
|
|
42 |
end_frame = int(duration * 10)
|
43 |
for frame in range(start_frame, end_frame + 1):
|
44 |
##angle = (frame / end_frame) * 2 * math.pi
|
|
|
39 |
planet.animation_data_create()
|
40 |
planet.animation_data.action = bpy.data.actions.new(name="OrbitAction")
|
41 |
start_frame = 1
|
42 |
+
duration=2
|
43 |
end_frame = int(duration * 10)
|
44 |
for frame in range(start_frame, end_frame + 1):
|
45 |
##angle = (frame / end_frame) * 2 * math.pi
|