Jump to content
catchyid

how to capture what is cooking while saving file?

Recommended Posts

hi,

Let's say you have a pyro sim, and you use file cache to save result. If an artist presses on "Save to Disk", he will get updates on what is cooking now (this way, he knows if one step is too heavy or at least which frame is being processed now)  -- See blow: "it's solving GAS_Advect and on frame 42"

image.thumb.png.a18f46240f419cbff383b9d05989fb3a.png

Question: we do sims on the farm in batch mode (i.e. houdini engine) using a python script that emulates press button, e.g. node.parm('execute').pressButton(), and my goal is to capture the status bar or window status text (to store it as log), however, and I am not sure how to do that, any ideas?

 

Thx

Share this post


Link to post
Share on other sites

just an update if someone is interested : no feature so far to do so in HOM, RFE 36966 has been logged by SideFX to support this function

 

thx

Share this post


Link to post
Share on other sites
Posted (edited)
On 6/2/2021 at 5:04 PM, catchyid said:

any ideas?

Maybe try turning on the Alfred Style Progress. I think that may kick out a frame by frame log to the console. Not sure how to intercept the console on-the-fly, however...

 

-> Try placing python code inside the Pre-Render or Post-Render script field of the filecache or ROP. You could access the hou.playbar to grab the current frame. Remember to switch the field type from hScript to Python. 

 

What if you updated your farm to use a tops based solution?

Set the filecache to a Save Current Frame, then loop over the frame range in tops setting a new frame based geometry filename every iteration? This could allow you to drop in a pythonscript node that can run some code every frame.

 

Edited by Atom
  • Like 1

Share this post


Link to post
Share on other sites

Thaanks Atom, super late I know... We have our own Farm so using TOPS would not be possible...I tried ALFRED and it spits out frame number but no details on what is being cooked now (e.g. pressure solve, advect, ...) ... If I use pre-render and post-render it will be able to know only frame number which is the same as ALFERD...anyways, sideFX "should" provide more APIs to do that...once more, thx for your ideas :)

 

 

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

×