How to increment POP age by group

   3824   7   0
User Avatar
Member
336 posts
Joined: Dec. 2014
Offline
I'm spawning particles only at the first $SF and I'd like to control when they begin incrementing age, preferably by when they're added to a group does that make sense? Any tips?
User Avatar
Member
471 posts
Joined: Nov. 2013
Offline
Greetings.
You can use SOP solver in order to control age attribute for each individual particle dynamically during the sim.
User Avatar
Member
336 posts
Joined: Dec. 2014
Offline
Great tip, digging into that. If anyone has an example that would be much preesh!
User Avatar
Member
336 posts
Joined: Dec. 2014
Offline
Ok looks like I've got something working. Many thanks to Francisco Rodriguez for the idea of using pop groups and wrangles to trigger an active state and an active frame in the initial .hip file he posted. All I've done is add another pop wrangle that checks for the active state, if on it sets the current age based on the current frame minus the frame it became active, basically starting the age counter from the time a particle is added to the group.

This is something I'll use all the time so I'm enclosing the .hip file in case anyone else finds it helpful. I'm very new to VEX so any comments or improvements from the experts out there would be great.
Edited by AndyW - Sept. 15, 2016 12:48:12

Attachments:
activate.v04.hipnc (246.5 KB)

User Avatar
Member
691 posts
Joined: June 2006
Offline
This is a small modification to the file to make it even more simple, but not simpler!

Cheers!

Attachments:
activate.v05.hipnc (242.4 KB)

Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
336 posts
Joined: Dec. 2014
Offline
VEX so fresh and so clean clean, thanks for the edits!
User Avatar
Member
8532 posts
Joined: July 2007
Online
to not overcomplicate things, you need just 1 line of code

POP Wrangle acting only on in_sphere group
@age += @TimeInc;

then 2 adjustments:
1. source Jitter Born Time set to None, so that age starts as 0
2. popsolver uncheck Age Particles, since now you are doing it yourself

Attachments:
activate.v06.hipnc (241.0 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
691 posts
Joined: June 2006
Offline
tamte
to not overcomplicate things, you need just 1 line of code

POP Wrangle acting only on in_sphere group
@age += @TimeInc;

then 2 adjustments:
1. source Jitter Born Time set to None, so that age starts as 0
2. popsolver uncheck Age Particles, since now you are doing it yourself


Ohhh That's not fair Tomas!!

Cheers!!
Edited by Alejandro Echeverry - Sept. 26, 2016 18:48:40
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
  • Quick Links