Jump to content

how to vary activation time


rohandalvi

Recommended Posts

hi,

This is a simple question, but I cant figure out the expression.

How can I vary the activation time for an effect or a force?

Lets say I want it to start between frame 20 and 50 based on rand($ID) what would be the expression?

Or even if I can bring particles into a group over a period of time, I guess even that would work. Still what would be the expression?

with regards

Rohan Dalvi

Edited by rohandalvi
Link to comment
Share on other sites

How can I vary the activation time for an effect or a force?

Lets say I want it to start between frame 20 and 50 based on rand($ID) what would be the expression?

something like:

if($F > int(fit01(rand($ID), 20, 50)), 1, 0)

* rand returns a 0..1 value

* fit01 rescales this value to the new min max

* int makes an integer - maybe unnecessary if you are dealing with floating frame numbers

* if(cond, then, else) sets the activation to 1 if condition is true.

untested.

Edited by rdg
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...