PDA

View Full Version : Think Particles PAge and PTimer


marcorabellini
08-23-2010, 11:27 PM
I'm trying to access and use the age of particles AFTER they've entered a new group.
Particles born -> Group 1 -> Deflector (event) -> enter Group 2 -> start a timer
After 30 frames in Group 2 -> enter Group 3.

PAge has a Type called "Enters Group" which I would think is for just this purpose. But I can't get it to work. Any help is appreciated.

(The manual is no help with "Enters Group". It has no parameters, so I assume it is supposed to indicate the event.)

Thanks,
m :banghead:

rustEdge
08-24-2010, 02:27 AM
Sorry, I can't figure out how Enters Group works either. But I've found a workaround.

Using PSetData, I reset the age of the particle to zero when it is transferred to Group2. Then with PAge you can get the particles that are of age 30 and move them to Group3. (If you need the lives to be the same as when they were generated by PStorm, you might have to go and subtract the particle's life by the age of the particle when it hits the deflector and use the difference as the particle's new life.)

http://www.genemagtoto.com/c4d/PTimer-solution-01.c4d

I'll try and find out the details of Enters Group. While it's still up in the air, I hope the workaround would work for you.

Cheers!

neonghost
08-24-2010, 06:09 PM
overcomplicating it? Try this.

marcorabellini
08-24-2010, 08:13 PM
:bowdown:
OMG Thanks so much. I swear I tried a GetData-Age and Compare. I swear!
Wonderful.

Now, if someone can cast any knowledge on what the hell Enters Group does, it would be appreciated.

m

CGTalk Moderation
08-24-2010, 08:13 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.