Notifications
Clear all

[Closed] Set output file for render

Hello.

Context:
3dsMax (2014-2015-2016) + VRay Adv 2.4x or 3.0x

Test:

  1. Create new empty Scene

  2. Select VRay Adv

  3. Execute:
    renderers.current.output_on = true
    renderers.current.output_useram = true
    renderers.current.output_saveRawFile = false
    renderers.current.output_splitgbuffer = true
    renderers.current.output_splitRGB = true
    renderers.current.output_splitAlpha = true
    renderers.current.output_genpreview = true
    renderers.current.output_splitfilename = “C:\ emp\ est.jpg”
    pngio.setType #true24
    pngio.setAlpha true
    pngio.setInterlaced false

  4. Try to render
    press “render” or execute “max quick render”

  5. The result file does not appear – It is the first question.

  6. Once again set the same file manually.

  7. Try to render
    and file is appear now

  8. Execute:
    renderers.current.output_splitfilename = “C:\ emp\ est.png”

  9. Try to render

  10. and a window appears with
    title=“PNG Plugin”
    message=“PNG Library Internal Error”

  • It is the second question.

I accept any advice
Thanks.

3 Replies

Could this be related?:

[left]

Changing the render scene dialog settings via MAXScript should be done with the actual render scene dialog in a closed state. Leaving the dialog open will make the attempted MAXScript modifications non-sticky.

[/left]

I remember not long ago somone added something about it…

see in maxscript ::index ::render scene dialog

renderSceneDialog.update()

If Render Scene dialog is open, it is updated to show the changes made to it. No arguments.

renderSceneDialog.commit()

If Render Scene dialog is open, the dialog remains open, but changes made in the dialog are accepted. No arguments.

Thank you for your answers.
We found the solution – output_splitbitmap must be “initialized”.
http://forums.cgsociety.org/archive/index.php/t-830811.html