how to script button - F9

how can i script somethign that does the same thing as button f9, render without saving?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

Hey Ian

Yeah, F9 == quick render.

If you use render() then check your settings. If you have assigned output file (rendOutputFilename) and "Save File" (rendSaveFile) is on, then the image would be saved.

But to not mess with renderer settings, just use "render to:", as Tassel shown:

tmpBmp = bitmap renderWidth renderHeight
render to:tmpBmp

my recent MAXScripts RSS (archive here)

W DIGITAL's picture

so F9 will be max quick

so F9 will be max quick render() ? (where it doesnt save the file)

(i dont want to have it saved, thats why f9 is great, u can have something checked in the save files, but it wont overwrite anything)

tassel's picture

Something like this

Something like this ?

RenderWindow = bitmap renderwidth renderheight filename: "C:\TestRender.png"
displayRenderWindow
Render last to:RenderWindow
escapeEnable = true
save RenderWindow

Raymond H.Ingebretsen - http://www.homme3d.com

W DIGITAL's picture

so render last() ernders

so render last()

ernders image, withotu saving it?

tassel's picture

render()render last()

render()
render last()
max quick render()

Raymond H.Ingebretsen - http://www.homme3d.com

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.