Jump to content
Sign in to follow this  
AlexNardini

Force python sop NOT to cook

Recommended Posts

Hello guys,

I have some code running in a python sop witch is time dependent (using hou.intFrame() in there ) so the node cook every frame.

However, Is there a way to force the python sop NOT to cook but only cook when is forced ( for example with a call back)  ?

 

Thanks in advance,

Alessandro

Share this post


Link to post
Share on other sites

Maybe you could try something with the "stash" SOP or scripts related to its functionality?
It can save geometry data to a parameter, if you load your geometry from there, downstream,
I would guess it will not "dirty the node" and request a cook automatically.

Edited by acey195

Share this post


Link to post
Share on other sites

How about just adding a control parm to the node and set it to True when you want it to cook. Or use hou.Node.userData for that matter.

if node.evalParm('cook?'):
  # Yes please

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
Sign in to follow this  

×