0

I am having trouble saving renders to an output file (using Maxscript). I use the following code in my script:


`render camera:$VRayCam002 frame:1 outputfile:"testscript.tif"`

When I run the code, I can see the scene render in the frame buffer, but the saved file, 'testscript.tif' is blank, i.e. the image is all black.

Any ideas what I may be doing wrong?

Thanks,

  • In what folder are you expecting the file to be? – Rotem May 02 '14 at 07:45
  • I didn't specify a folder, but by default, it saves the file to the sceneassets folder, so on completing the render, it prints a statement like--`BitMap:_MyDocumentsPath_\3dsMax\sceneassets\images\testscript.tif` – user3557985 May 02 '14 at 15:48

1 Answers1

1

Figured out the problem. Apparently, while doing things pertaining to the render scene dialog settings in MAXScript, the actual dialog should be closed. See here from MAXScript help documentation.

With the dialog closed, the image saves properly

Also be sure to set rendSaveFile =true and rendOutputFilename = "whatevername"