JoPmt commited on
Commit
9dccbd2
1 Parent(s): a6ccde5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -119,14 +119,14 @@ def create_meteor_with_particle_system():
119
  output_node = nodes.get("Material Output")
120
  material_link = meteor.active_material.node_tree.links.new
121
  material_link(emission_node.outputs[0], output_node.inputs[0])
122
- ##meteor.location = (random.uniform(-10, 10), random.uniform(-10, 10), random.uniform(-10, 10))
123
  bpy.context.view_layer.objects.active = meteor
124
  meteor.select_set(True)
125
  meteor.animation_data_create()
126
  meteor.animation_data.action = bpy.data.actions.new(name="OrbitAction")
127
  start_frame = 1
128
  duration=2
129
- radius=5
130
  end_frame = int(duration * 10)
131
  for frame in range(start_frame, end_frame + 1):
132
  angle = (frame / end_frame) * 2 * math.pi
 
119
  output_node = nodes.get("Material Output")
120
  material_link = meteor.active_material.node_tree.links.new
121
  material_link(emission_node.outputs[0], output_node.inputs[0])
122
+ meteor.location = (random.uniform(-10, 10), random.uniform(-10, 10), random.uniform(-10, 10))
123
  bpy.context.view_layer.objects.active = meteor
124
  meteor.select_set(True)
125
  meteor.animation_data_create()
126
  meteor.animation_data.action = bpy.data.actions.new(name="OrbitAction")
127
  start_frame = 1
128
  duration=2
129
+ radius=3
130
  end_frame = int(duration * 10)
131
  for frame in range(start_frame, end_frame + 1):
132
  angle = (frame / end_frame) * 2 * math.pi