JoPmt commited on
Commit
fbbdfaf
·
verified ·
1 Parent(s): ca405dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -99,9 +99,10 @@ def create_meteor_with_particle_system():
99
  output_node = nodes.get("Material Output")
100
  material_link = meteor.active_material.node_tree.links.new
101
  material_link(emission_node.outputs[0], output_node.inputs[0])
 
102
  meteor.keyframe_insert(data_path="location", frame=1)
103
  meteor.location = (random.uniform(-10, 10), random.uniform(-10, 10), random.uniform(-10, 10))
104
- meteor.keyframe_insert(data_path="location", index=-1, frame=20)
105
 
106
  def create_scene():
107
 
 
99
  output_node = nodes.get("Material Output")
100
  material_link = meteor.active_material.node_tree.links.new
101
  material_link(emission_node.outputs[0], output_node.inputs[0])
102
+ meteor.location = (random.uniform(-10, 10), random.uniform(-10, 10), random.uniform(-10, 10))
103
  meteor.keyframe_insert(data_path="location", frame=1)
104
  meteor.location = (random.uniform(-10, 10), random.uniform(-10, 10), random.uniform(-10, 10))
105
+ meteor.keyframe_insert(data_path="location", frame=20)
106
 
107
  def create_scene():
108