Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Parameter every specified number of frames?

I've been trying to write an expression which will hold a value and change every specified number of frames. 

I have a point jitter, and an animated seed so the point will change position every timestep, my goal is to have an expression where the the point will stay in the same position for 8 frames and then change position, and remain in that position for another 8 frames and so on.

I've attached a very basic scene file if its any easier for you to use that, any help is greatly appreciated,



Share this post

Link to post
Share on other sites

Hey Nathan,

You can get this fairly easily with an expression like 


ceil will round up the fraction to the next integer, and since we divide by 8 here it will change every 8 frames.

You could put this this expression in your timeshift or you could remove your timeshift altogether and just put the expression in your seed.

Hope this helps.

1 person likes this

Share this post

Link to post
Share on other sites

Thats worked perfectly! exactly what I was after!

Is there anywhere I can read up on the functions used in expressions within houdini specifically, that you know of? 

Thanks again!

Share this post

Link to post
Share on other sites

If you haven't already then its a good idea to check out the expression cookbook for a starting point. If you just open the houdini help browser and look for "expression cookbook" it should pop up.

You can also read through the "expression functions" list if you just want an idea of whats possible.

Good luck!

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