ScriptSpot

Forum topic · General Scripting

how to script button - F9

By W DIGITAL · 2011-10-03

Description

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

Comments (5)

Hey Ian

Anubis · 2011-10-05

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

W DIGITAL · 2011-10-05

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 · 2011-10-04

Something like this ?


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

W DIGITAL · 2011-10-03

so render last()

ernders image, withotu saving it?

render()render last()

tassel · 2011-10-04

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