Is the command line region render flag broken?

Is the command line region render flag broken?

giandosopaolo
Advocate Advocate
904 Views
7 Replies
Message 1 of 8

Is the command line region render flag broken?

giandosopaolo
Advocate
Advocate

I am trying to render only the bottom region of my maya animated sequence by using the command line render.

In the command editor I wrote:

>render -r arnold -s 126 -e 242 -reg 0 1919 900 1079 -im MyScene_01 E:\_Projects\MyScene\MyScene.mb

The render starts as usual, but I noticed that Arnold is rendering the full 1920x1080 image, not just the region I selected and the render time is not diminishing.

Am I doing something wrong?

Should it be -reg 0 1919 900 1079 or -reg 0 1920 900 1080 ?

Is anything broken?

@thiago.ize 

 

0 Likes
Accepted solutions (1)
905 Views
7 Replies
Replies (7)
Message 2 of 8

LFGFX3D
Enthusiast
Enthusiast

Yes, it seems the -reg flag has been broken for a while now. There is a workaround though - use the following command in the Ai User Option of the defaultArnoldRenderOptions:

 

region_min_x # region_max_x # region_min_y # region_max_y #

 

where #s are your pixel coordinates

Message 3 of 8

Stephen.Blair
Community Manager
Community Manager

@LFGFX3D wrote:

Yes, it seems the -reg flag has been broken for a while now. There is a workaround though - use the following command in the Ai User Option of the defaultArnoldRenderOptions:

 

region_min_x # region_max_x # region_min_y # region_max_y #

 

where #s are your pixel coordinates


That was supposed to be fixed in MtoA 5.1.1.1

  • MTOA-999 - Region Min and Region Max values are not exported


// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 4 of 8

Stephen.Blair
Community Manager
Community Manager
Accepted solution

Looks like that fix never made it in, or we broke it again. I've reopened the ticket.

Here's how to set the user options on the render command line:

 

render -r arnold -s 1 -e 1 -ai:lve 3 -preRender "setAttr -type \"string\" defaultArnoldRenderOptions.aiUserOptions \"region_min_x 0 region_max_x 1919 region_min_y 900 region_max_y 1070\";" example.ma

 

 

 



// Stephen Blair
// Arnold Renderer Support
Message 5 of 8

giandosopaolo
Advocate
Advocate

Thanks! 😊

0 Likes
Message 6 of 8

giandosopaolo
Advocate
Advocate

I tried using the line of text you suggested in the command line @Stephen.Blair 

It seems like Arnold gets stuck when I use it. Meaning it keeps precalculating the shot but never really starts rendering it. 😕

0 Likes
Message 7 of 8

giandosopaolo
Advocate
Advocate

Ok, it seems that it works, but only if I add xres 1920 yres 1080 before region_min_x

0 Likes
Message 8 of 8

Stephen.Blair
Community Manager
Community Manager

@giandosopaolo wrote:

I tried using the line of text you suggested in the command line @Stephen.Blair 

It seems like Arnold gets stuck when I use it. Meaning it keeps precalculating the shot but never really starts rendering it. 😕


Works fine for me when I try it.

xres and yres should always be exported. I don't know how to make them not be exported...maybe it's something in the scene setup?



// Stephen Blair
// Arnold Renderer Support
0 Likes