Spawning a bunch of pre-positioned mesh objects as a particle

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
Old 09 September 2006   #1
Spawning a bunch of pre-positioned mesh objects as a particle

I hope that I can explain this properly.

I am trying to treat a bunch of pre-positioned mesh objects in my scene as particles.

Basically, I have a scene of a city block and I have broken this city scene into thousands of mesh elements. What I want to do is create a particle flow event where a particle gets spawned and each individual particle is then attached to the center of each on of these city mesh elements (each mesh element is then linked to the particle). I then want to do some nifty things in PFlow to blow around the city scene to dissamble it in a very creative way.

Does this make sense and is it possible.


Old 09 September 2006   #2
try this script:

on ChannelsUsed pCont do
pCont.useAge = true
pCont.useTM = true
pCont.useShape = true

on Init pCont do 
global ChunksArray = $your object_* as array

on Proceed pCont do 
t = pCont.getTimeStart() as float

if t < 0 do 
NumChunks = ChunksArray.count
for i = 1 to NumChunks do
pCont.particleIndex = pCont.NumParticles() 
pCont.particleAge = 0
pCont.particleTM = ChunksArray[i].transform
pCont.particleShape = ChunksArray[i].mesh

on Release pCont do 


or if your city is basicly made from boxes use shape instances...

Last edited by PsychoSilence : 09 September 2006 at 07:38 PM.
Old 09 September 2006   #3
Is it this what you're looking for?

I don't remember the script exactly, so i don't know, if it is the same as PsychoSilence posted.
Old 09 September 2006   #4
THis has been a huge help

Thank You,

This has been a huge help. I am able to do exactly what I need to do with a limited amount of keyframes.

Particle Flow Rocks!
Old 09 September 2006   #5
no prob

that´s what we are all here for for asking for help and for helping others


Old 09 September 2006   #6
Turning them back into objects with baked animation

Is there a way of turning a selection of these Particle (Mesh Objects) back into baked animation objects to then be used in Reactor?


Old 09 September 2006   #7
there's a tutorial about reactor and particles on

wach it, i never did it, but perhaps you'll find your way. other than that, i can only suggest you thinking particles. this is similar to pflow, but much more powerful. only bad that you have to pay a lot for it.
Old 09 September 2006   #8

Before you posted I began downloading the tutotial from Allan's site.

Both Allan and Oleg are becoming my masters. Sooo much to learn.
Old 09 September 2006   #9
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 04:55 AM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.