View Full Version : Save Last Render

04 April 2008, 11:45 AM
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?

04 April 2008, 11:55 AM
Getting somewhere, but stuck on this at the moment.

qRender = GetLastRenderedImage()

RPath = Execute("G:\test01.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?

04 April 2008, 12:05 PM
qRender = GetLastRenderedImage()

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

Save qRender

Yay, that works,


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

CGTalk Moderation
04 April 2008, 12:05 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.