![]() |
|
#2
|
|||
|
|||
|
You should use the viztask module to generate screenshots within a loop. Simply yield one frame in between screenshots and they should all be saved correctly. Here is a sample script:
Code:
import viz
import viztask
viz.go()
model = viz.add('vcc_female.cfg',pos=(0,1,3))
def ScreenShotTask():
for x in range(10):
#Rotate model
model.setEuler(x*36,0,0)
#Request screen capture at end of frame
viz.window.screenCapture('image%02d.bmp'%(x))
#Wait for frame
yield None
viztask.schedule( ScreenShotTask() )
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stop for... loop | Johannes | Vizard | 20 | 04-01-2014 02:53 AM |
| Creating a loop to switch between menu pages | RodRSpv | Vizard | 1 | 03-02-2009 03:19 PM |
| For Loop in Callbacks? | DrunkenBrit | Vizard | 2 | 02-19-2009 01:26 AM |
| screenshots | vadrian | Vizard | 1 | 04-25-2005 07:17 AM |
| for loop concatenation for 300 billboarding trees | eugcc | Vizard | 4 | 04-22-2004 01:46 AM |