Maya Training

Creating characters In Maya and Zbrush

Maya Training

Creating character renders in Maya 2017 and Arnold

Maya Training

Spach-Alspaugh House the complete courseware
You are here > Home > SimplyMaya Community Forums

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 16-09-2003, 11:17 AM   #1
Registered User
Join Date: Jul 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to convert a selected subregions to a .mi file

i have a script within maya,which allows to render sub regions within,mayarenderer;
which works fine, as long as ther's no gi ,nor fg or caustics (generated by mr2maya)

from within, maya script editor:

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" );

} get_RenderRegions( 10000, 10000, 2, 2, "pane", "C:\\temp\\essaicube.mb" );

then, i get 4 panes, that i can render from a dos prompt:

Render -x 10000 -y 10000 -xl 0 -xr 4999 -yl 0 -yh 4999 -im pane_0 C:\temp\essaicube.mb
Render -x 10000 -y 10000 -xl 0 -xr 4999 -yl 5000 -yh 9999 -im pane_1 C:\temp\essaicube.mb
Render -x 10000 -y 10000 -xl 5000 -xr 9999 -yl 0 -yh 4999 -im pane_2 C:\temp\essaicube.mb
Render -x 10000 -y 10000 -xl 5000 -xr 9999 -yl 5000 -yh 9999 -im pane_3 C:\temp\essaicube.mb

so, as i said it works without
so, how could i save these four panes,individually ,as a.mi file,to allows mrstandalone
to render???
i,ve tried within mrstandalone render subregions;
but, i,m very ennoyed with these darks areas,especially with extremly large frame buffer§§
i want to have nregions ,extremly large res,that i,ll fix after within phsp!
hope you understand!
gorjie is offline   Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open a Lightwave file in Maya 2011 radiant777 Maya Basics & Newbie Lounge 2 04-12-2010 03:45 AM

Thread Tools

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2017 SimplyMaya - vBulletin® Copyright © 2000-2017, Jelsoft Enterprises Ltd.