TheArtifier
12-22-2010, 09:48 PM
I need to know if there is a way to batch render specific layers via a command-line render. I have an animated scene and I need to render certain render layers out to specified frames. for example I need to render renderlayer#1 out to frames 1 through 12 and renderlayer#2 out to frames 13 through 25.
I have been researching command-line rendering in search of a solution to my needs and I have gotten close but I am still not quite there.
I have gotten it to render specific cameras with specific set of frames but it renders all the render layers. So I thought there would be flags that turn off certain named render layers or turns them on. I found what I feel should work and that is a boolean command as follows:
-rl <boolean>|<name(s)> render each render layer separately
so I created this script:
Render -r mr -cam RenderCam1 -rl 0 Color_90,AO_90,Shadows_90 -log renderlog.txt -s 1 -e 12 -im HamsterEating_VW1 -rd C:\Users\Daves_Asus\Documents\ArtBin\GeneologyGame\FamilyTree\images\HamsterEating\Cam_1 HamsterEating_2.ma
Render -r mr -rl 0 Color1,AO1,Shadows1 -log, renderlog2.txt -cam RenderCam_90 -s 13 -e 25 -im HamsterEating_VW90 -rd C:\Users\Daves_Asus\Documents\ArtBin\GeneologyGame\FamilyTree\images\HamsterEating\Cam_90 HamsterEating_2.ma
I have had this script run just fine before trying to impliment the '-rl 0 Color1,AO1,Shadows1' and '-rl 0 Color_90,AO_90,Shadows_90'
but i really need to control which layers render.
I am wondering why this doesn't work. Is my formatting wrong? Is there a way to do this?
it should work becuase -rl is the render layer flag '0' should turn of the layers that follow by name (separated by commas).
any direction on this matter would be much appreciated.
oh the error I get with this script is the following:
More than one file name is not allowed: -s ...
I have checked for spaces in the names of my files but I didn't see any.
I have been researching command-line rendering in search of a solution to my needs and I have gotten close but I am still not quite there.
I have gotten it to render specific cameras with specific set of frames but it renders all the render layers. So I thought there would be flags that turn off certain named render layers or turns them on. I found what I feel should work and that is a boolean command as follows:
-rl <boolean>|<name(s)> render each render layer separately
so I created this script:
Render -r mr -cam RenderCam1 -rl 0 Color_90,AO_90,Shadows_90 -log renderlog.txt -s 1 -e 12 -im HamsterEating_VW1 -rd C:\Users\Daves_Asus\Documents\ArtBin\GeneologyGame\FamilyTree\images\HamsterEating\Cam_1 HamsterEating_2.ma
Render -r mr -rl 0 Color1,AO1,Shadows1 -log, renderlog2.txt -cam RenderCam_90 -s 13 -e 25 -im HamsterEating_VW90 -rd C:\Users\Daves_Asus\Documents\ArtBin\GeneologyGame\FamilyTree\images\HamsterEating\Cam_90 HamsterEating_2.ma
I have had this script run just fine before trying to impliment the '-rl 0 Color1,AO1,Shadows1' and '-rl 0 Color_90,AO_90,Shadows_90'
but i really need to control which layers render.
I am wondering why this doesn't work. Is my formatting wrong? Is there a way to do this?
it should work becuase -rl is the render layer flag '0' should turn of the layers that follow by name (separated by commas).
any direction on this matter would be much appreciated.
oh the error I get with this script is the following:
More than one file name is not allowed: -s ...
I have checked for spaces in the names of my files but I didn't see any.
