WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-25-2021, 09:48 AM
sado_rabaudi sado_rabaudi is offline
WorldViz Team Member
 
Join Date: Jul 2016
Posts: 40
Hi,

I believe you would need to put all of your tasks under one function and then call that function with one viztask.schedule(seq()). In that function the viztask function is waiting for "yield" statements

i.e.

def fadeAndAppear():
yield viztask.addAction( ball, vizact.fadeTo(0,time=2) )
print('done fading' )
yield viztask.addAction( ball, vizact.fadeTo(1,time=2) )
print('done appearing')
viztask.schedule( fadeAndAppear() )

Best,
Sado
Reply With Quote
 

Tags
code, python, sequence, tasks, vizard


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
How to make my code more efficent. Queenss_RA Vizard 2 05-13-2013 09:22 AM
Using Sphinx to generate code documents nabrahamson Vizard 0 10-31-2011 07:38 AM
Suggestion: Code Browser kopper Vizard 5 05-23-2011 03:39 AM
Any ideas on linking chess 3ds file with source code? djones1010 Vizard 1 04-24-2009 09:56 PM
Trying to integrate Source Code with Vizard djones1010 Vizard 1 03-10-2009 02:58 PM


All times are GMT -7. The time now is 01:08 AM.


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