Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Raffaele Fragapane
Why not just batch the command to simulate stuff and then save in place on all scenes? Hopefully this isn't being done in a GUI client :)

RE: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Sandy Sutherland
OK Raff - you trying to confuse EVERYONE now - LOL :^) S. _ Sandy Sutherland Technical Supervisor sandy.sutherl...@triggerfish.co.za _ From: softimage-boun...@listproc.autodesk.com

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Raffaele Fragapane
You used to be able to pass the batch client a script to run and a scene if I remember correctly. Put together a two lines script that runs the sim and saves in place, and then run a shell script, a cron job, or whatever you use for running jobs that iterates a set of scenes in batch. Using a

RE: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Sandy Sutherland
Yep that is what we are doing - using RR and the farm - we are passing .sh files with scene, model to cache etc.. and xsibatch does the stuff for us. You could as you say build a batch file to do the same thing - one scene/or cache job at a time in sequence - then run it - no GUI needed. Is

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Raffaele Fragapane
Yep, it's pretty standard procedure mostly anywhere for batching this kind of stuff. On Thu, Aug 23, 2012 at 6:15 PM, Sandy Sutherland sandy.sutherl...@triggerfish.co.za wrote: Yep that is what we are doing - using RR and the farm - we are passing .sh files with scene, model to cache etc..

RE: Checking if simulation is done for current frame | beginner scripting question

2012-08-23 Thread Sandy Sutherland
Yep - I guess i assumed that what Christian was trying to do was just that. _ Sandy Sutherland Technical Supervisor sandy.sutherl...@triggerfish.co.za _ From: softimage-boun...@listproc.autodesk.com

RE: Checking if simulation is done for current frame | beginner scripting question

2012-08-22 Thread Sandy Sutherland
Not sure what you mean - go to end frame and cache all simulation. What sort of caching etc... - we do lots of caching at TF - including icecaches for fur and mdd caching for geoms - I can send you script snippets tomorrow (at home now) if you like? You do not need to go to end frame - you

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-22 Thread Christian
Thanks for your reply! Let me try to be more specific. I want to open a number of scenes, go to the endframe and cache using cache on file node. I have all this working, except I don't know how to check if the simulation has finished, so I can open a new scene. As it is now, the new scene

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-22 Thread Vincent Ullmann
Hi a solution i use, wheni have to Cache something by script: i run a ViewPort-Capture. Didnt got my latest CachingScript here, but i could check this tomorow... but what i would do: Some kind of a PseudoCode: - Open Scene - Go to Frame 1 - Apply ICE-Tree in SecondaryShape (Add Node: Cache on

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-22 Thread Alok
That's a little strange, how can your script proceed to the next line while you cache procedure is still running and has not returned. Anyways, in your script do a separate function with the CacheObjectsIntoFile() command or whatever you are using to cache. In the main function call this cache

Re: Checking if simulation is done for current frame | beginner scripting question

2012-08-22 Thread Christian
Thanks to all who replied, much appreciated! Got it working with Vincents method. Cheers On 2012-08-22 21:26, Vincent Ullmann wrote: Hi a solution i use, wheni have to Cache something by script: i run a ViewPort-Capture. Didnt got my latest CachingScript here, but i could check this