Jump to content

Recommended Posts

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. 

 

 

 

 

Share this post


Link to post
Share on other sites

Maybe you can emit particles using the impact attribute and give them a lifespan of 5 frames ?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×