gangland Posted April 26, 2020 Share Posted April 26, 2020 Hello guys, i ve a simple pop simulation running by an attribute active. after they are active they fall and i would like to give them some noise (based on age) by using pop wind however the age still applying globally, and the older one who was last activated begin already with the same age of all. how i suppose the begin age counting for each particle who is activated?? ps: to exemple i attach an simple hip file age_v001.hip Quote Link to comment Share on other sites More sharing options...
Sepu Posted April 26, 2020 Share Posted April 26, 2020 if I understood correctly what you want - in your wrangle inside the pop network just add if (@active == 0){ @mass=0; @age = 0;` } Quote Link to comment Share on other sites More sharing options...
gangland Posted April 26, 2020 Author Share Posted April 26, 2020 On 4/26/2020 at 4:23 AM, Sepu said: if I understood correctly what you want - in your wrangle inside the pop network just add if (@active == 0){ @mass=0; @age = 0;` } Expand one thing that still happen is the particles that begin moving start all with same age. Quote Link to comment Share on other sites More sharing options...
gangland Posted April 26, 2020 Author Share Posted April 26, 2020 the ideia is that each particle that has begin to move has an incresing number like age or so Quote Link to comment Share on other sites More sharing options...
Sepu Posted April 26, 2020 Share Posted April 26, 2020 that is what is happening, look at the spreadsheet and you can also just put a pop color in ramp mode and do `ramp = @age;` and you will see it another representation or outside of the popnet as well, use a visualization node. Quote Link to comment Share on other sites More sharing options...
msmahesh Posted April 26, 2020 Share Posted April 26, 2020 float incr = @TimeInc/2; if (@active != 0) { f@new_age += incr; } you can create new variable new_age to drive pop wind. new_age_v001.hip 1 Quote Link to comment Share on other sites More sharing options...
gangland Posted April 26, 2020 Author Share Posted April 26, 2020 On 4/26/2020 at 7:10 PM, msmahesh said: float incr = @TimeInc/2; if (@active != 0) { f@new_age += incr; } you can create new variable new_age to drive pop wind. new_age_v001.hipFetching info... Expand this is the right damn thing bro! i totally owe you a beer! Quote Link to comment Share on other sites More sharing options...
anim Posted April 26, 2020 Share Posted April 26, 2020 how is that different from sepu's solution apart from adding unnecessary attribute? Quote Link to comment Share on other sites More sharing options...
msmahesh Posted April 27, 2020 Share Posted April 27, 2020 On 4/26/2020 at 8:47 PM, anim said: how is that different from sepu's solution apart from adding unnecessary attribute? Expand there is no difference, final results are the same. Quote Link to comment Share on other sites More sharing options...
anim Posted April 27, 2020 Share Posted April 27, 2020 (edited) On 4/27/2020 at 7:43 AM, msmahesh said: there is no difference, final results are the same. Expand that was more question for Gabriel since he implied that sepu's version didn't produce the expected result Edited April 27, 2020 by anim Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.