JoPmt commited on
Commit
7cf3136
1 Parent(s): a7d8cfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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