Skip to content

Commit

Permalink
Add rotation instance to particle system
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig committed Jul 16, 2024
1 parent 789db74 commit 54b25b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion biig_ants/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,15 @@ def main():
0.0,
math.pi,
-math.pi / 2,
] # -1.5708]
]

with bpy.context.temp_override(context="PARTICLES"):
bpy.data.particles["ParticleSettings"].render_type = "OBJECT"
bpy.data.particles[
"ParticleSettings"
].instance_object = bpy.data.objects["Eleodes_spec"]
bpy.data.particles["ParticleSettings"].use_rotation_instance = True


# Set up camera

Expand Down

0 comments on commit 54b25b3

Please sign in to comment.