Author Topic: Access image buffer data with maxscript  (Read 391 times)

2022-09-21, 14:19:27

bertv

  • Active Users
  • **
  • Posts: 6
    • View Profile
In Vray the following works for bitmap saving.
In Corona I don't know how to do this.

Code: [Select]
corona = renderers.current    --This works getting the current renderer
corona.output_on = true        --No idea how to do this with Corona
corona.output_splitgbuffer = true        --No idea how to do this with Corona

corona.output_splitfilename = fooFileNamePath       --No idea how to do this with Corona

This is the solution to resolve the problem I described at the following location:
https://forum.corona-renderer.com/index.php?topic=37530.0

Regards,
Bert

2022-09-22, 09:38:06
Reply #1

Frood

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

I think it's a misunderstanding. When using Corona, 3ds Max handles the file outputs at the moment. You cannot just set properties of another engine, they do not exist. However, you can access the frame buffer data like this and do anything in a script with it:

Code: [Select]
-- for all engines:
render1=getlastrenderedimage()
display render1

-- Corona VFB access. 0 is channel beauty, the booleans mean postprocessing and renderstamp included yes/no:
render2=CoronaRenderer.CoronaFP.getVFBContent 0 true true
display render2

Usually you can find that information here:

https://wiki.corona-renderer.com/maxscript

But for some unknown reason it's down atm.


Good Luck


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