I maybe wrong about this but I can't seem to find a reference for setting the size of the Vray Frame Buffer via maxscript.
I can set the output size of the image but how do I resize the existing frame buffer?
The reason I need to do it is I want to set the vray region with a script, this works well if the region is smaller than the current size of the frame buffer but doesn't set correctly if the region is bigger or some part of it is outside the current frame buffer resolution.
Example:
Current Frame buffer size: 640x480 output size: 640x480 region: (0 0 200 200) this works fine
Current Frame buffer size: 640x480 output size: 1500x1500 region: (1000 1000 1500 1500) this will not be set properly as the region coordinates are outside the current buffer size
When you hit render the vray frame buffer automatically resizes to the output size and after that you can set the right region render coordinates.
I can set the output size of the image but how do I resize the existing frame buffer?
The reason I need to do it is I want to set the vray region with a script, this works well if the region is smaller than the current size of the frame buffer but doesn't set correctly if the region is bigger or some part of it is outside the current frame buffer resolution.
Example:
Current Frame buffer size: 640x480 output size: 640x480 region: (0 0 200 200) this works fine
Current Frame buffer size: 640x480 output size: 1500x1500 region: (1000 1000 1500 1500) this will not be set properly as the region coordinates are outside the current buffer size
When you hit render the vray frame buffer automatically resizes to the output size and after that you can set the right region render coordinates.
Comment