rendered paste bodyfrom Blender import *
import Blender
def Format (x):
if x < 10:
return str (0) + str(x)
else:
return str (x)
def Countdown (m):
txtobj = Object.Get("fonty")
txt = txtobj.getData()
frame = Blender.Get("curframe")
fps = 27
msec = 0
s = 0
i = 0
while m >= 0:
while s >= 0:
while msec >= 0:
i += 1
if i%fps == 0:
print Format (m) + ":" + Format(s) + ":" + Format(msec)
txt.setText(Format (m) + ":" + Format(s) + ":" + Format(msec))
# Blender.Get("curframe")
msec -= 1
s -= 1
msec = 99
m -= 1
s = 59
txtobj.makeDisplayList()
Countdown(5)
Window.RedrawAll()