ScriptSpot home

Forum topic · General Scripting

how to script button - F9

By V-MOTION · 2011-10-03

Description

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

Comments (5)
Panayot Karabakalov

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
V-MOTION

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)

Raymond Homme Ingebretsen

Something like this ?


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

so render last()

ernders image, withotu saving it?

Raymond Homme Ingebretsen

render()render last()

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