Render Method Help

I'm working on a script that uses the Render Method as outlined in the Autodesk MaxScript documentation, found here: http://bit.ly/rsibeX

My scene has a single box polygon object sitting at the origin.

When using 3DS Max to do a standard render the results come out as expected. However when using MaxScript to render, the results come out darker then expected. The issue appears using both Mentalray and Scanline. I'm using 3DS Max 2012 x64 SP2.

Example of the difference:

Code:
render outputfile:("C:\\RenderTest\\ScriptRender.png");

Has anyone else tried to use this method? What kind of results are you getting? Any help in finding a solution to the problem would be greatly appreciated.

Thanks.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
br0t's picture

glad it helped!

glad it helped!

Never get low & slow & out of ideas

br0t's picture

You should be aware that the

You should be aware that the "render" command does NOT use the current render settings (not sure if this also affects gamma settings). If you simply want to press the render button via script, the command is: "max quick render". Change the "rendOutputFilename" to the path you want to render to and you should be good to go.
Cheers

Never get low & slow & out of ideas

Jon Rick's picture

Thanks, got it working like a

Thanks, got it working like a charm.

Sample Script:
rendSaveFile = true;
rendOutputFilename = ("C:\\RenderTest\\ScriptRender.png");
max quick render

tassel's picture

Looks like an Gamma issue?

Looks like an Gamma issue?

Raymond H.Ingebretsen - http://www.homme3d.com

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.