Notifications
Clear all

[Closed] Save Last Render

I’m writing a script that saves the max file and the last render with the same name.

GetLastRenderedImage() Returns a Bitmap Value, how do I save this to a file?

2 Replies

Getting somewhere, but stuck on this at the moment.

qRender = GetLastRenderedImage()

RPath = Execute("G:	est01.jpg" as string)
qRender.filename = RPath

Save qRender

– Error occurred during fileIn in StringStream:“G: est01.jpg”
– Syntax error: at keyword parameter, expected <factor>
– In line: G: e
– Unable to convert: undefined to type: FileName
– Runtime error: Bitmap requires a fileName for save(): BitMap:

How do I get round the /t issue?

qRender = GetLastRenderedImage()

--RPath = Execute( as string)
qRender.filename = "G:/test01.jpg"

Save qRender

Yay, that works,

Dave

Ps Sorry have to voice these things sometimes to work out how to fix them.