Author Topic: Max scripting to automate rendering  (Read 456 times)

2024-03-28, 01:10:04

digitalomega

  • Users
  • *
  • Posts: 1
    • View Profile
Hello All!

I am making a script to render and save an image automatically, but I have a couple problems:
When using this  CoronaRenderer.CoronaFp.dumpVfb "D:/yourfilename.cxr" or using CoronaRenderer.CoronaFp.saveAllElements"D:/yourfilename.cxr"
I can only save as .cxr, if I try to save as .jpg I only get a 64px black bitmap.
Is there a workaround for this?

Also, when I am using the render() function inside maxscript this is resetting all the render settings of corona and the vfb, is this normal behaviour? or how can it be avoided.

Thank you in advance and happy rendering!





2024-03-28, 12:52:30
Reply #1

Frood

  • Active Users
  • **
  • Posts: 1922
    • View Profile
    • Rakete GmbH
Hi,

see Maxscript help: Use "max quick render" if you want the same result as pressing the render button or "render()" with all required parameters if you need more control, for example "render outputfile:@"C:\temp\test.jpg" vfb:false".

I would not use the interface functions of Corona until you really need it for something special (post processing on/off for example or "live dumps" during rendering), they also may change in v12.


Good Luck



Never underestimate the power of a well placed level one spell.

2024-03-28, 16:00:49
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
Not sure if that helps in your case, but you can use the 3ds Max Rendering > Batch render option to render in a batch from various cameras or with different settings. You can also export your batch rendering to .bat from there.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us