Jump to content

cache only the last frame of a sim


Recommended Posts

Hi,

I have a sim that I need to run from $RFSTART to $RFEND but I only want to cache the last frame out to disk. I'm using a Geometry ROP but there's no "on/off" switch for me to determine which frames it should write to disk via expression. Does anyone know how I should go about doing this?

Link to comment
Share on other sites

You can use File DOP/SOP node. In activation parameter just use expression like this:

if($FF==24, 1, 0)

24 is the frame you want to cache, in your case, last frame number

and set Operation Mode to Write Files.

Edited by Tom
Link to comment
Share on other sites

You can use File DOP/SOP node. In activation parameter just use expression like this:

if($FF==24, 1, 0)

24 is the frame you want to cache, in your case, last frame number

and set Operation Mode to Write Files.

Hi Tom, thanks for the reply. Forgot to mention that I'm doing the sim in SOP (via Feedback SOP or the new H12 Solver SOP).

The activation parameter seems to be available only for the File DOP, but not the File SOP...

Link to comment
Share on other sites

You can use Switch SOP before File sop and use same expression in Select Input parameter.

In first switch input plug Null and second your simulation.

I hope I understand your problem right this time :)

Edited by Tom
Link to comment
Share on other sites

You can use Switch SOP before File sop and use same expression in Select Input parameter.

In first switch input plug Null and second your simulation.

I hope I understand your problem right this time :)

Thanks for the help Tom. Used it in my network and it works!

Initially I thought it wouldn't work because switching to the null branch would mean that the main sim branch is not evaluated, but looks like I was wrong.

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...