Maxscript function to change Output Size doesn't seem to work

Hi All,
I wanted to change the Render output size in maxscript but the function don’t seem to work. I use:

renderers.current.output_width = 1024
renderers.current.output_height = 576

But when I open the Render Settings window, Width and Height are still in the default values (640 x 480). The output size is set to custom.
Funny thing is that if I query the values like print current.output_width it returns the value I attempted to change (1024 in this case), but this doesn’t get reflected in the render settings window. And if I try to render the image it outputs at 640x480.

This made me wonder if the parameters for Output Size Width and Height are not the ones I am changing, although using showproperties renderers.current I can’t seem to find any other parameter that might have something to do with it.

Thanks in advance!

There’s an issue with the render dialog not updating it’s visible values when you change them via maxscript so you’ve to add in renderSceneDialog.close() at the start and renderSceneDialog.open() at the end to see some updates.

If you are looking to change the 3ds Max render resolution (as opposed to the V-Ray VFB settings), you should use the renderWidth and renderHeight global MaxScript variables, like this:```
renderWidth=1024
renderHeight=576


Best regards,
Vlado