Page 1 of 1

Random Expression

Posted: Wed Mar 07, 2018 6:18 pm
by Dhruba Jyoti
I am creating a simple random expression to control my wind strength and make it random. But the random expression evaluates every frame so in each frame I have a different value but what I want to is the random expression changes its value from say 2 to 5 in a frame range of say 7. So instead of evaluating every frame, I want to change its evaluation time. That way the curve will be much smoother and natural for the wind.
Can anyone here tell what expression do I need to use?
I am new to expressions so a little explanation will be good too.

Re: Random Expression

Posted: Fri Mar 09, 2018 8:38 am
by Thomas Schlick
Hmmm... Can't think of a way right now to achieve such a behaviour with expressions, but I have to take a closer look. Unfortunately, this won't happen before March 15. I'm very busy with other projects right now. In the meantime you may want to go through the introduction to expressions in our blog. Maybe you'll find some inspiration and insights there. It's a mini series with 3 parts:

http://blog.realflow.com/tips/expressions-part-1/