![]() |
Create Two sequential tasks for images in Vizard
I'm new in Vizard. I'm trying to create a simple code to perform two tasks sequentially for a specific time set:
A black image for 0.8 seconds A sequence of images (from a folder) taken randomly, for 1.5 seconds. I can perform these task separately, but I can't merge together. Suggestions are very appreciated, thank you Code:
import viz |
Use viztask.waitTime instead of vizact.ontimer to wait inside of a task function. It seems like you can place the sequential actions in a single task function:
Code:
blankTexture = viz.addBlankTexture(size=(100,100)) |
Display random images from a folder
Thank you so much!
It is also possible to display the image from a folder randomly without rename all the images in the folder? an alternative solution for this 3 lines Code:
r = list(range(7)) |
All times are GMT -7. The time now is 10:19 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC