Background Render script (Update)

(theeth) #1

the script now works both in Blender 2.25 and Blender 2.23.

It will pop up a simple GUI. Press Anim to render the last saved file. Always remember to save before rendering that way, to “apply” all the last change to the blend file.

I hope it’s useful for some of you.


(mthoenes) #2

Many thanks,
It would probably be more useful to me if I had dual processors. My Blender interface slowed down to a point where it was not very useful. I presume however that this will result in faster render times in 225 because it is like command line rendering.(Right)

I had to comment out the first line to get the script to run. I kept getting a syntax error.
What’s up?

(BaDbOyHeRe) #3

thank you. this will be very helpful when using my laptop. :smiley:

(theeth) #4

there was a small redundant line in that version, so I thought I might as well update it.

import os, sys
import Blender

def gui():
	Blender.BGL.glClearColor(0.6, 0.6, 0.6, 0.0)
	Blender.Draw.Button("ANIMN", 1, 10, 10, 80, 20)

def event(evt, mode):
	if evt == Blender.Draw.ESCKEY: Blender.Draw.Exit()

def bevent(evt):
	if evt == 1:
		os.spawnl(1, sys.executable," -b " + Blender.Get("filename"), "-a")