由 stantang » 30日 3月 2006年, 18:03
Ok, try this script if you use Maya SW render.
---
global proc get_RenderRegions( int $x_res, int $y_res,
int $x_reg, int $y_reg,
string $image, string $file )
{
int $x_step = floor( (float)$x_res/(float)$x_reg );
int $y_step = floor( (float)$y_res/(float)$y_reg );
if( $x_res % 2 != 0 ) {
error( "X resolution must be even" );
}
if( $y_res % 2 != 0 ) {
error( "Y resolution must be even" );
}
int $x, $y;
int $image_index = 0;
for( $x=0; $x<$x_res; $x+=$x_step )
{
for( $y=0; $y<$y_res; $y+=$y_step )
{
string $command = "Render";
$command += " -x "+$x_res+" -y "+$y_res;
$command += " -xl "+$x+" -xr "+($x+$x_step-1);
$command += " -yl "+$y+" -yh "+($y+$y_step-1);
$command += " -im "+$image+"_"+$image_index;
$command += " "+$file;
print( $command+"\n" );
$image_index++;
}
}
}
---
after that run this in the Maya command line.
get_RenderRegions(6000, 6000, 3, 3, "pane", "C:\\maya\\yourfile.mb" );
You can change it to whatever size you need. This above command will give you 9 planes @ 2000 X 2000.