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?
cache only the last frame of a sim
Started by chaindriver, Jun 03 2012 06:32 AM
4 replies to this topic
#1
Posted 03 June 2012 - 06:32 AM
#2
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.
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
Posted 03 June 2012 - 07:09 AM
Tom, 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.
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
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
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
Posted 04 June 2012 - 07:29 AM
Tom, 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
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










