looking for record image script


(robejms) #1

a while ago i found a script someone had created which writes image files to the hard disk when activated in the realtime engine . i.e. it takes screen shots of the realtime window and writes this screen shot as an image file.

I now can’t find the damn script… anyone got any ideas where it is?

thanks

Rob


(Ben) #2

This is the script:

filebase=“c:\documenti”

import Rasterizer
import GameLogic

Get the script owner

owner=GameLogic.getCurrentController().getOwner()

count the image number up

owner.nr=owner.nr+1

filename=filebase+"%d"%owner.nr+".tga"
print "Writing : "+filename

Rasterizer.makeScreenshot(filename)