wildon Posted February 19, 2014 Share Posted February 19, 2014 hello, how i can create a timer in houdini? i want to detect when one attribute became true, keep the frame one action during a certain amont of time after he came true and stop. for exemple if a have a RDB when he it a surface, he emit dust during five frame after the impact frame. Quote Link to comment Share on other sites More sharing options...
Doum Posted February 20, 2014 Share Posted February 20, 2014 Maybe you can emit particles using the impact attribute and give them a lifespan of 5 frames ? Quote Link to comment Share on other sites More sharing options...
wildon Posted February 20, 2014 Author Share Posted February 20, 2014 off course i can do it. but if my particles live 5 frames my emiter is active all the time. i need to reset my impact attribute a certain amount of time after the frist impact. i found one solution but is not really light ... Quote Link to comment Share on other sites More sharing options...
GallenWolf Posted February 20, 2014 Share Posted February 20, 2014 5 frames later? Why not just bake out your impact data, then timeshift it by 5 frames? Quote Link to comment Share on other sites More sharing options...
cubiccube Posted February 21, 2014 Share Posted February 21, 2014 Here's a simple setup for a timer inside a simulation context. I like using a "state" attribute where 0 = ready, 1 = active, and -1 = dead. This is handy for controlling things like debris emission too. simple_timer_v01.hipnc Quote Link to comment Share on other sites More sharing options...
wildon Posted February 22, 2014 Author Share Posted February 22, 2014 thank you very much is exactelly what i want to do Quote Link to comment Share on other sites More sharing options...
petethechin Posted September 4, 2017 Share Posted September 4, 2017 Thanks for this solution, 3 years later!! Quote Link to comment Share on other sites More sharing options...
bonassus Posted May 25, 2021 Share Posted May 25, 2021 I think the simple timer example posted above is not so simple. Here is an example of a sop solver timer that is actually simple. simple_Timer.hiplc 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.