Jump to content
BrianK

How To Force Recook?

Recommended Posts

Simple as that, how do you force a recook?

I see the function "forceRecook()"

but slapping that in the cook doesn't seem to work.

Share this post


Link to post
Share on other sites

OP_Node::forceRecook() only marks the node as needing to be recooked. That's how generally everything works in Houdini. Nothing cooks until someone asks for its data. (eg. changing a parameter on a node with no viewport open won't cause a node to recook). If you must get it to cook right now, then you can probably call OP_Node:cook() after forceRecook(). That's assuming that you're dealing with OBJ, SOP, POP, or CHOP. Other contexts either don't cook or cook drastically differently.

Share this post


Link to post
Share on other sites

Thanks to ivan (from all the way in the other room)...

OP_Node::flags().timeDep = 1;

makes the SOP frame dependant - forcing a recook at each frame. I guess I phrased my question wrong. ;)

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

×