Something’s been bugging me for weeks now : I’ve had some experience with Blender’s particule system (old & new), but I’ve never managed to do this:
Let’s say I have a particule system driven by a lattice, and it’s sitting in the surface of a sphere that is rotating on its axis. When the simulation is computed, particles do not always follow the lattice path, since it is moving. Instead they have this motion that is usually quite realistic, but it’s not in my case considering the distance scale I’m trying to represent.
So is there an -easy- way to have the particles behave like there is no relative motion ? I mean like the only thing that’s moving is the camera (yeah, I thought of doing it this way, but then I told myself there’s gotta be a much quicker way to do that :p)
Are you want to “freeze” Particle System?!
Test the script:
import Blender
# Converts particles into a mesh with edges for strands
from Blender import Scene, Mathutils, Effect, Mesh, Object
scn= Scene.GetCurrent()
ob= scn.getActiveObject()
me= Mesh.New()
effects= Effect.Get()
for eff in effects:
for p in eff.getParticlesLoc():
# p is either a vector or a list of vectors. me.verts.extend() will deal with either
print p
me.verts.extend(p)
if type(p)==list: # Are we a strand or a pair, then add edges.
if len(p)>1:
edges= [(i, i+1) for i in range(len(me.verts)-len(p), len(me.verts)-1)]
me.edges.extend( edges )
print len(me.verts)
ob= scn.objects.new(me)