How to increment POP age by group
3899 7 0- AndyW
- Member
- 338 posts
- Joined: 12月 2014
- Offline
- Nima
- Member
- 471 posts
- Joined: 11月 2013
- Offline
- AndyW
- Member
- 338 posts
- Joined: 12月 2014
- Offline
- AndyW
- Member
- 338 posts
- Joined: 12月 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.
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 - 2016年9月15日 12:48:12
- Alejandro Echeverry
- Member
- 691 posts
- Joined: 6月 2006
- Offline
This is a small modification to the file to make it even more simple, but not simpler!
Cheers!
Cheers!
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
- AndyW
- Member
- 338 posts
- Joined: 12月 2014
- Offline
- tamte
- Member
- 8630 posts
- Joined: 7月 2007
- Offline
to not overcomplicate things, you need just 1 line of code
POP Wrangle acting only on in_sphere group
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
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
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Alejandro Echeverry
- Member
- 691 posts
- Joined: 6月 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 - 2016年9月26日 18:48:40
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
-
- Quick Links