Jump to content

how to capture what is cooking while saving file?


catchyid

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 2 weeks later...

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 :)

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...