fix base.movie()

This commit is contained in:
David Rose 2004-08-09 18:54:38 +00:00
parent 0550b1ec52
commit 0de8ef7f7a

View File

@ -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