Notifications
Clear all

[Closed] Save current rendered framebuffer?

Hi Guys,

When testing I will render out lots of tests through the frame buffer. Some are good and some not. I am looking for a method of saving the currently rendered frame buffer to a specified location.

I have looked through the maxscript docs and online but everything seems to point to saving the render prior to rendering and not saving the rendered frame buffer. Cant find any examples.

Any help would be most appreciated.

3 Replies
1 Reply
(@polytools3d)
Joined: 11 months ago

Posts: 0

Accessing the Last Rendered Image

(
	-- Get the last Rendered image
	img = getlastrenderedimage()
	
	-- Assign a filename
	img.filename = @"C:\render_001.png"
	
	-- Save it
	save img
)

			CurRenderer.output_saveRawFile = true
			CurRenderer.output_rawFileName = "\...+ ..vrimg"
its working with vray, didnt try with corona yet

Thanks guys, much appreciated! That did the trick.