PFlow Cache


#1

Hi, Is there any way i can run the manual update button through a script? Looked through the help files but couldnt have any properties for it. Thanks for any help.


#2

There is nothing listed in the operators properties so I would guess to say no.

Both Cache Disk and Cache Selective on the other hand have the ‘.update()’ function


#3

Thanks for the reply.Found a work around. I set the script to cache update always then isolate the particle system and run the playanimation() function. Important thing here is to set realtime playback to false so that it will cache each frame correctly. Troublesome thing about playanimation is it loops so i have to call a macroscript out to stop it.


#4

Haha cool thats a pretty good workaround :wink:

You could try using something like this to set and reset the status of the Time Config Loop, ect. (Bobo gave me the hookup on time callbacks :slight_smile: )


 fn timeConfigLoopCheck =
 (
 	if (currentTime == animationRange.end) do
 	(
 		stopAnimation()
 		timeConfiguration.playbackLoop = true
 		unRegisterTimeCallback timeLoopConfigCheck 
 	)
 )
 
 timeConfiguration.playbackLoop = false
 if timeConfiguration.playbackLoop == false then
 (
 	registerTimeCallback timeConfigLoopCheck
 	realtimePlayback = false
 	playAnimation()
 )
 

#5

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.