AlexNardini Posted November 19, 2018 Share Posted November 19, 2018 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 Quote Link to comment Share on other sites More sharing options...
acey195 Posted November 19, 2018 Share Posted November 19, 2018 (edited) 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 November 19, 2018 by acey195 Quote Link to comment Share on other sites More sharing options...
AlexNardini Posted November 19, 2018 Author Share Posted November 19, 2018 Thank you, will have a look at that. Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted November 19, 2018 Share Posted November 19, 2018 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 Quote Link to comment Share on other sites More sharing options...
AlexNardini Posted November 19, 2018 Author Share Posted November 19, 2018 Thank you, I’ll try that too. 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.