Page 1 of 1

Scripted batch render

Posted: Fri Sep 19, 2014 6:54 am
by feynman
In case the network is too much of a notwork, is there a script for Windows PCs with which one can batch render "manually"? What I mean is to upload 4-5 pack & go folders to one of the render nodes and start a script that renders them one after the other up to a specified SL or time limit. Sounds very simple, but how would one go about that?

Thanks!

Re: Scripted batch render

Posted: Fri Sep 19, 2014 2:08 pm
by Mihai
Open Maxwell
Go to Scripting>Scripts>batch_render

:)

Although these are pretty old, I'm not sure if they still function 100% with V3. If they don't please reply here, and you can also send a PM to Dario to take a look at this thread.

Re: Scripted batch render

Posted: Fri Sep 19, 2014 3:13 pm
by feynman
Thanks, I looked at that. However it's not at all clear to me how it is supposed to be working. Will it find the textures within each pack & go folder? I have 7 entirely different scenes, with different materials and different textures, each pack & go'ed in its own folder...

Re: Scripted batch render

Posted: Fri Sep 19, 2014 3:31 pm
by Mihai
Well, I can think of several things.....

move all to one folder before rendering
specify extra texture paths in maxwell and studio prefs

Re: Scripted batch render

Posted: Fri Sep 19, 2014 3:39 pm
by Fernando Tella
Doesn't Maxwell always looks for textures in mxs folder as first option?

Re: Scripted batch render

Posted: Fri Sep 19, 2014 5:02 pm
by feynman
Apart from the old batch_render script working or not (with V3) - one can't specify a number of pack & go folders there. There is only an input and an output folder in which to drop the MXS files. Each of my renderings has a different aspect ratio, size and likely needs a different time to render to acceptable quality.

I was rather thinking that one can somehow accomplish this like with a good old Photoshop action... or would I have to learn coding to write a script for batch rendering?

Re: Scripted batch render

Posted: Fri Sep 19, 2014 5:24 pm
by Mihai
If you look through the script a bit, the commands are pretty logical. Want only to render the MXS files in the folder, but not change their rez or SL?

Delete these lines:
Code: Select all
  Scene.setSamplingLevel( 8 );
  Mxi.setResX( 400 );
  Mxi.setResY( 400 );
And if you just put your MXS in one folder with the textures, you can just use this script. There is no need to put stuff in separate pack & go folders just for rendering. But anyway....it was only a suggestion, we can find complications for everything....

Re: Scripted batch render

Posted: Fri Sep 19, 2014 5:37 pm
by feynman
Mihai wrote:But anyway....it was only a suggestion, we can find complications for everything....
A script is better than having to get up at night, go to the office, and launch the next render... I give it a try.