JDenker Posted April 9, 2008 Share Posted April 9, 2008 Hey Guys, i have a little question. As the topic says i want to have different birth rates over time. i could easily do it with a spare channel and channel reference it the birth tab which i did at the end... but before that i thought of an expressions and it drove me crazy that i couldnt figure it out. so basicly what i want is, from frame 1 to 30 i want to birth 300 particles, from frame 31 to 120 i want to birth 1000 particles and from frame 121 to 300 i want to birth 0 particles. i came up with this but i won't work. i would love to see your suggestions. if($F>=30&&$F<=120,1000,if($F<=30&&if($F>=0,200),0)) Thanks -J Quote Link to comment Share on other sites More sharing options...
rdg Posted April 9, 2008 Share Posted April 9, 2008 Hey Guys,i have a little question. As the topic says i want to have different birth rates over time. i could easily do it with a spare channel and channel reference it the birth tab which i did at the end... but before that i thought of an expressions and it drove me crazy that i couldnt figure it out. so basicly what i want is, from frame 1 to 30 i want to birth 300 particles, from frame 31 to 120 i want to birth 1000 particles and from frame 121 to 300 i want to birth 0 particles. i came up with this but i won't work. i would love to see your suggestions. if($F>=30&&$F<=120,1000,if($F<=30&&if($F>=0,200),0)) Thanks -J Maybe just put down some keyframes? My first idea was to use chf() and a spare channel, but really: why not just keyframe it? Another way would be to birth 1000 particles all the time and to animate the birth-probability, which would save you from unexpected bursts of particles. Georg Quote Link to comment Share on other sites More sharing options...
grasshopper Posted April 9, 2008 Share Posted April 9, 2008 Well you could always use this 1000 * fit($F,30,31,0.3,1) * fit($F,120,121,1,0) Quote Link to comment Share on other sites More sharing options...
rdg Posted April 10, 2008 Share Posted April 10, 2008 Well you could always use this 1000 * fit($F,30,31,0.3,1) * fit($F,120,121,1,0) Expression or die! Quote Link to comment Share on other sites More sharing options...
mentor Posted April 10, 2008 Share Posted April 10, 2008 (edited) Go to "Aliases and variables" and choose Expressions tab, type something like this: float b1(float fn) { float c = 0; if (fn<50) c = 10; else if (fn>=50) c = 30; return c; } Press "Aplly changes" and in "birth rate" field type b1($F) - thats all Edited April 10, 2008 by mentor 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.