From 0de8ef7f7a6dd9b4c3f4827dde89364fa36e817f Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 9 Aug 2004 18:54:38 +0000 Subject: [PATCH] fix base.movie() --- direct/src/showbase/ShowBase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index cdc39a1b7c..f3ba70a3de 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -1548,9 +1548,9 @@ class ShowBase(DirectObject.DirectObject): """ movie(namePrefix = 'movie', duration=1.0, fps=30, format='rgb', sd=4) - Spawn a task to capture a movie using the takeSnapshot function. + Spawn a task to capture a movie using the screenshot function. - namePrefix will be used to form output file names (can include - path information (e.g. 'I:/beta/frames/myMovie') + path information (e.g. '/i/beta/frames/myMovie') - duration is the length of the movie in seconds - fps is the frame rate of the resulting movie - format specifies output file format (e.g. rgb, bmp) @@ -1572,7 +1572,7 @@ class ShowBase(DirectObject.DirectObject): else: frameName = state.outputString % state.frameIndex self.notify.info("Capturing frame: " + frameName) - takeSnapshot(self.win, frameName ) + self.win.saveScreenshot(Filename(frameName)) state.frameIndex += 1 return Task.cont