WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-09-2009, 01:12 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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() )
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 02:03 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC