vray save framebuffer via python maxscipt?

Hello everyone. i have a problem.
i would like to create a maxscript with python that saves my image from vray’s framebuffer.

i have tried various ways but i have not found a working solution. Could someone please help me? I would just need the line of code that would allow me to save the render to a local folder. If it would help, the save render I would like to put it inside a compute loop of some images.
​

This docs page holds all the available parameters that can be controlled in the VFB via MaxScript. I presume your Python script can call those functions.

thanks. i read the docs and used : rt.execute(“vfbControl #clearimage”) and rt.execute(“vfbControl close”)​ to access to vfb methods. for render i used rt.render()

rt.execute("vfbControl #saveimage \"D:\MYIMAGE.JPG\"" )
all these work as well, ofc.

​

Grazie @_Lele . I am creating a loop to save 10 images. the problem is that even though Vray’s framebuffer works, 3dsmax’s framebuffer opens every time, so I have 10 framebuffer windows . is there a way to disable 3dsmaxframe buffer to open?( like normal vray render)
thanks

Prego!
Max’s own rendShowVFB​ off
should work, does it not?

it works. Thanks again

Hi,

Just wondering, normally i save multiple image with batch render, is there anything wrong with batch render?

Absolutely not.
It’s also rather helpful to render variations, when coupled with scene states.

Thank you for your explanation.