![]() |
screenshots using a loop
Hi all,
can somebody help me? I have troubles with my program. I'm busy writing a small script which is basically a loop where an object rotates in after the rotation it has to make a screenshot of it and store it on the disk with the objects name and rotation degree. The loop works perfectly it prints out what it has to save on the disk but it doesn't save (well it saves only the last screenshot). Do I have to approach this differently? Thanks for your help! Code:
import viz |
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 |
Thank you so much, this saves a tons of time!
|
All times are GMT -7. The time now is 02:24 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC