Re: Checking if simulation is done for current frame | beginner scripting question
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
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 [softimage-boun...@listproc.autodesk.com] on behalf of Raffaele Fragapane [raffsxsil...@googlemail.com] Sent: 23 August 2012 08:11 To: softimage@listproc.autodesk.com Subject: Re: Checking if simulation is done for current frame | beginner scripting question 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
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 graphic client to open, simulate and save a number of potentially heavy scenes in sequence is not as ideal as having one instance per scene with no GUI crud. On Thu, Aug 23, 2012 at 5:38 PM, Sandy Sutherland sandy.sutherl...@triggerfish.co.za wrote: 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 [ softimage-boun...@listproc.autodesk.com] on behalf of Raffaele Fragapane [ raffsxsil...@googlemail.com] *Sent:* 23 August 2012 08:11 *To:* softimage@listproc.autodesk.com *Subject:* Re: Checking if simulation is done for current frame | beginner scripting question 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 :) -- Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are!
RE: Checking if simulation is done for current frame | beginner scripting question
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 that what you meant? S. _ Sandy Sutherland Technical Supervisor sandy.sutherl...@triggerfish.co.za _ From: softimage-boun...@listproc.autodesk.com [softimage-boun...@listproc.autodesk.com] on behalf of Raffaele Fragapane [raffsxsil...@googlemail.com] Sent: 23 August 2012 10:04 To: softimage@listproc.autodesk.com Subject: Re: Checking if simulation is done for current frame | beginner scripting question 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 graphic client to open, simulate and save a number of potentially heavy scenes in sequence is not as ideal as having one instance per scene with no GUI crud. On Thu, Aug 23, 2012 at 5:38 PM, Sandy Sutherland sandy.sutherl...@triggerfish.co.zamailto:sandy.sutherl...@triggerfish.co.za wrote: OK Raff - you trying to confuse EVERYONE now - LOL :^) S. _ Sandy Sutherland Technical Supervisor sandy.sutherl...@triggerfish.co.zamailto:sandy.sutherl...@triggerfish.co.za _ From: softimage-boun...@listproc.autodesk.commailto:softimage-boun...@listproc.autodesk.com [softimage-boun...@listproc.autodesk.commailto:softimage-boun...@listproc.autodesk.com] on behalf of Raffaele Fragapane [raffsxsil...@googlemail.commailto:raffsxsil...@googlemail.com] Sent: 23 August 2012 08:11 To: softimage@listproc.autodesk.commailto:softimage@listproc.autodesk.com Subject: Re: Checking if simulation is done for current frame | beginner scripting question 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 :) -- Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are!
Re: Checking if simulation is done for current frame | beginner scripting question
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.. 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 that what you meant? S. _ Sandy Sutherland Technical Supervisor sandy.sutherl...@triggerfish.co.za _ -- *From:* softimage-boun...@listproc.autodesk.com [ softimage-boun...@listproc.autodesk.com] on behalf of Raffaele Fragapane [ raffsxsil...@googlemail.com] *Sent:* 23 August 2012 10:04 *To:* softimage@listproc.autodesk.com *Subject:* Re: Checking if simulation is done for current frame | beginner scripting question 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 graphic client to open, simulate and save a number of potentially heavy scenes in sequence is not as ideal as having one instance per scene with no GUI crud. On Thu, Aug 23, 2012 at 5:38 PM, Sandy Sutherland sandy.sutherl...@triggerfish.co.za wrote: 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 [ softimage-boun...@listproc.autodesk.com] on behalf of Raffaele Fragapane [raffsxsil...@googlemail.com] *Sent:* 23 August 2012 08:11 *To:* softimage@listproc.autodesk.com *Subject:* Re: Checking if simulation is done for current frame | beginner scripting question 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 :) -- Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are! -- Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are!
RE: Checking if simulation is done for current frame | beginner scripting question
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 [softimage-boun...@listproc.autodesk.com] on behalf of Raffaele Fragapane [raffsxsil...@googlemail.com] Sent: 23 August 2012 10:29 To: softimage@listproc.autodesk.com Subject: Re: Checking if simulation is done for current frame | beginner scripting question 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.zamailto: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.. 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 that what you meant? S. _ Sandy Sutherland Technical Supervisor sandy.sutherl...@triggerfish.co.zamailto:sandy.sutherl...@triggerfish.co.za _ From: softimage-boun...@listproc.autodesk.commailto:softimage-boun...@listproc.autodesk.com [softimage-boun...@listproc.autodesk.commailto:softimage-boun...@listproc.autodesk.com] on behalf of Raffaele Fragapane [raffsxsil...@googlemail.commailto:raffsxsil...@googlemail.com] Sent: 23 August 2012 10:04 To: softimage@listproc.autodesk.commailto:softimage@listproc.autodesk.com Subject: Re: Checking if simulation is done for current frame | beginner scripting question 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 graphic client to open, simulate and save a number of potentially heavy scenes in sequence is not as ideal as having one instance per scene with no GUI crud. On Thu, Aug 23, 2012 at 5:38 PM, Sandy Sutherland sandy.sutherl...@triggerfish.co.zamailto:sandy.sutherl...@triggerfish.co.za wrote: OK Raff - you trying to confuse EVERYONE now - LOL :^) S. _ Sandy Sutherland Technical Supervisor sandy.sutherl...@triggerfish.co.zamailto:sandy.sutherl...@triggerfish.co.za _ From: softimage-boun...@listproc.autodesk.commailto:softimage-boun...@listproc.autodesk.com [softimage-boun...@listproc.autodesk.commailto:softimage-boun...@listproc.autodesk.com] on behalf of Raffaele Fragapane [raffsxsil...@googlemail.commailto:raffsxsil...@googlemail.com] Sent: 23 August 2012 08:11 To: softimage@listproc.autodesk.commailto:softimage@listproc.autodesk.com Subject: Re: Checking if simulation is done for current frame | beginner scripting question 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 :) -- Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are! -- Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are!
RE: Checking if simulation is done for current frame | beginner scripting question
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 can just run a cache command which all have start frame and end frame inputs. S. _ Sandy Sutherland Technical Supervisor sandy.sutherl...@triggerfish.co.za _ From: softimage-boun...@listproc.autodesk.com [softimage-boun...@listproc.autodesk.com] on behalf of Christian [softimagel...@gmail.com] Sent: 22 August 2012 20:24 To: list Subject: Checking if simulation is done for current frame | beginner scripting question Hi list, Sorry if this is a stupid question, but I am new to scripting... I am trying to write a script that will open a scene, go to the end frame, cache all the simulation, then open next scene. But how can I check if the simulation is finished? Thanks, Christian
Re: Checking if simulation is done for current frame | beginner scripting question
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 is opened before the simulation is done. Thanks, Christian On 2012-08-22 20:59, Sandy Sutherland wrote: 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 can just run a cache command which all have start frame and end frame inputs. S. _ Sandy Sutherland Technical Supervisor sandy.sutherl...@triggerfish.co.za _ From: softimage-boun...@listproc.autodesk.com [softimage-boun...@listproc.autodesk.com] on behalf of Christian [softimagel...@gmail.com] Sent: 22 August 2012 20:24 To: list Subject: Checking if simulation is done for current frame | beginner scripting question Hi list, Sorry if this is a stupid question, but I am new to scripting... I am trying to write a script that will open a scene, go to the end frame, cache all the simulation, then open next scene. But how can I check if the simulation is finished? Thanks, Christian
Re: Checking if simulation is done for current frame | beginner scripting question
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 Frame) - Set CaptureOptions (Path: C:\Tmp\Capture.jpg / Resulotion: 10x10pixel / Interactive:false) - Capture Viewport - Close Scene
Re: Checking if simulation is done for current frame | beginner scripting question
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 function and then open the next scene. Alok On 22/08/2012 3:26 PM, Christian wrote: 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 is opened before the simulation is done. Thanks, Christian On 2012-08-22 20:59, Sandy Sutherland wrote: 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 can just run a cache command which all have start frame and end frame inputs. S. _ Sandy Sutherland Technical Supervisor sandy.sutherl...@triggerfish.co.za _ From: softimage-boun...@listproc.autodesk.com [softimage-boun...@listproc.autodesk.com] on behalf of Christian [softimagel...@gmail.com] Sent: 22 August 2012 20:24 To: list Subject: Checking if simulation is done for current frame | beginner scripting question Hi list, Sorry if this is a stupid question, but I am new to scripting... I am trying to write a script that will open a scene, go to the end frame, cache all the simulation, then open next scene. But how can I check if the simulation is finished? Thanks, Christian - No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2197 / Virus Database: 2437/5217 - Release Date: 08/22/12
Re: Checking if simulation is done for current frame | beginner scripting question
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 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 Frame) - Set CaptureOptions (Path: C:\Tmp\Capture.jpg / Resulotion: 10x10pixel / Interactive:false) - Capture Viewport - Close Scene