K- Here we goes folks. This all about rendering in Windows with .bat files.
I had a problem and I needed a solution. I need to render my preset scenes on “CALL”. My scenes are renders of just about everything that you can imagine. My scenes go through changes due to whatever objects are appended to a scene. In some preset scenes the lighting is sunny, in others the room is at midnight. Then one scene is a render of a different perspective in the same building with the door just about to open. All of these different scenes complete a presentation that involves a series of images that describe what the nature of the presentation is all about and such. What ever changes happen in named files will be rendered out in the .bat files.
I know what my renders will look like. The scenes are set. I just needed a way to dump all this stuff out for compositing and work output. I needed an art factory. I needed production. I needed the hook up.
I looked at the Blender Batch renderers. They rendered my files but were buggy for some things that I did and I could not control them in the “exact” way that I needed to. So I set up these .bat files.-
First I placed my choice of Blender build at the foot of my hard drive- C:\Blender - .
These .bat files run a string of Blender renders. You type these .bat files in Notepad. Here is the setup.-
To find out all of the possible Blender syntax commands, make and run this .bat file.-
C:\blender\blender -b C:\blender\1\sunnyroom.blend -f -1
C:\blender\blender -b C:\blender\1\midnightroom.blend -f -1
C:\blender\blender -b C:\blender\1\roomdoor.blend -f -1
C:\blender\blender -b C:\blender\2\sunnybigao.blend -f -1
C:\blender\blender -b C:\blender\2\midnightroomao1.blend -f -1
C:\blender\blender -b C:\blender\2\midnightroomao2.blend -f -1
C:\blender\blender -b C:\blender\2\roomdoorao.blend -f -1
Oh snap, I got to put some Yafray stuff in the oven-
C:\blender\blender -b C:\blender\3\yafsunnyroom.blend -f -1
C:\blender\blender -b C:\blender\3\yafmidnightroom.blend -f -1
C:\blender\blender -b C:\blender\3\yafroomdoor.blend -f -1
Now to render a collection of prepared .bat render files you need this .bat file setup.-
call C:\ blenderrender1.bat
call C:\ blenderrender2.bat
call C:\ Yafrender1.bat
That’s it for now. There is so much more that can be done with .bat files in Windows to help you to automate your 3d artwork production.
Get yo’ geek on!