Jump to content


cache only the last frame of a sim


  • Please log in to reply
4 replies to this topic

#1 chaindriver

chaindriver

    Peon

  • Members
  • Pip
  • 21 posts
  • Joined: 21-July 11
  • Name:Chaindrive R

Posted 03 June 2012 - 06:32 AM

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?

#2 Tom

Tom

    Peon

  • Members
  • Pip
  • 96 posts
  • Joined: 18-June 11
  • Location:Latvia
  • Name:Toms Seglins

Posted 03 June 2012 - 06:49 AM

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, 03 June 2012 - 06:50 AM.


#3 chaindriver

chaindriver

    Peon

  • Members
  • Pip
  • 21 posts
  • Joined: 21-July 11
  • Name:Chaindrive R

Posted 03 June 2012 - 07:09 AM

View PostTom, on 03 June 2012 - 06:49 AM, said:

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

#4 Tom

Tom

    Peon

  • Members
  • Pip
  • 96 posts
  • Joined: 18-June 11
  • Location:Latvia
  • Name:Toms Seglins

Posted 03 June 2012 - 07:15 AM

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, 03 June 2012 - 07:16 AM.


#5 chaindriver

chaindriver

    Peon

  • Members
  • Pip
  • 21 posts
  • Joined: 21-July 11
  • Name:Chaindrive R

Posted 04 June 2012 - 07:29 AM

View PostTom, on 03 June 2012 - 07:15 AM, said:

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users