Jump to content

time of event happening


mic

Recommended Posts

hello friends!

simple problem:

pop: location -> event 'too_old' ($FF > 25). i want to query only the time of event happening. for example, popeventtime('too_old') will evaluate always after 25 frame.. and i want only 25th frame..

(event = ($FF>25) && ($FF < 26) isn't very good solution, because in real scene eventRule is much larger and some particles can slip through "manually edited range")

Link to comment
Share on other sites

Cant you just use the $F == 25 expression?

no - this is an example, the real event rule is smth like ($dist (my attribute) < n), and unlikely this attr will ever take on a value n for a custom particle.

in other words, i need 'poppoint at given (past) frame' (like 'chf' expression function, but for particles)

Edited by mic
Link to comment
Share on other sites

the whole problem is:

in my particle system particles are dead when some condition happens (some distance < n if age > m). i don't want them dead, i want to animate pscale smoothly to zero (you know, f(x) = 1 + 2x^3 - 3x^2 [smooth curve from one to zero]). so i need the exact time of the condition's implementation - to bring to my formula. from this moment pscale must reduce.

of course there are some fake solutions like [event=true => pscale*0.5, if pscale < 0.01 => kill]. but i'm interested in a smart solution)

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...