View Full Version : individual particle targeting
marcorabellini 01-03-2008, 03:05 AM Is there any way to get the index number of a particle? What I'd really like to achieve is having a particle from one group target the same index number of a particle in another group. By target, I mean approach the position and/or rotation vector.
m
|
|
The TP Particle type of the output of PPassAB can be interpreted as Integer by using a universal adapter node. It will basicaly give you the index. However you should be aware that this is not a unique identifier for a particle but rather the the current value of the iteration over the particles.
If you realy need a unique number you should add a data channel and feed it with an increment to the current numbe rof particles on birth of the new particle.
If you don't change any assignments of particles to groups and don't kill any particles within a group the index provided by PPassAB should be sufficent though
Cheers
Björn
mark render
01-21-2008, 03:37 PM
Hi Björn,
this is a case i often would need, but i couldn´t fully understand how to achieve this:
"If you realy need a unique number you should add a data channel and feed it with an increment to the current numbe rof particles on birth of the new particle."
i tried to comprehend and build a expresso-setup, but couldn´t.
is there any example-scene?
i know expresso-basics, but am not a pro.
your help would be great!
thanks a lot,
mark.
Check the example here: http://www.bonkers.de/forums/forums.html
Cheers
Björn
mark render
01-21-2008, 05:39 PM
Great, i´ll check!
Thank you!
CGTalk Moderation
01-21-2008, 05:39 PM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.