I am rendering an animation with 4000 frames withe the dimension of 8000 * 3000 pixel in maya. A bird is flying in an empty scene all around the image in varying sizes, sometimes quite small.
The rendering of the bird itself is really fast. But just to test the whole image, whether there is someting there or not, takes quite some for this resolution. And most often the image is almost empty.
Sphere Fade or masking will not help, since the complete image would still be tested.
So I thought I would try to animate the Region Render. But I do not know how to access or animate it or how to reach it with a script.
My pseudo code looks like this:
Warning: Pseudo Code Start ...
global proc defineRegionRender(){
float $leftBottom[] = `xform - q -t leftBottom_locator`;
float $rightTop[] = `xform - q -t rightTop_locator`;
setAttr vrayRegionRender.left $leftBottom[0];
setAttr vrayRegionRender.rght $rightTop[0];
setAttr vrayRegionRender.bot $leftBottom[1];
setAttr vrayRegionRender.top $rightTop[1];
}
But I do not have access to my invented "vrayRegionRender.left".
I thought I could then throw the procedure into the Pre Render MEL slot of the MEL callbacks in the Vray Common Render Settings ...
Thanks for your attention
/Bumba
The rendering of the bird itself is really fast. But just to test the whole image, whether there is someting there or not, takes quite some for this resolution. And most often the image is almost empty.
Sphere Fade or masking will not help, since the complete image would still be tested.
So I thought I would try to animate the Region Render. But I do not know how to access or animate it or how to reach it with a script.
My pseudo code looks like this:
Warning: Pseudo Code Start ...
global proc defineRegionRender(){
float $leftBottom[] = `xform - q -t leftBottom_locator`;
float $rightTop[] = `xform - q -t rightTop_locator`;
setAttr vrayRegionRender.left $leftBottom[0];
setAttr vrayRegionRender.rght $rightTop[0];
setAttr vrayRegionRender.bot $leftBottom[1];
setAttr vrayRegionRender.top $rightTop[1];
}
But I do not have access to my invented "vrayRegionRender.left".
I thought I could then throw the procedure into the Pre Render MEL slot of the MEL callbacks in the Vray Common Render Settings ...
Thanks for your attention
/Bumba
Comment