passing data to viz.director
is there a way to pass information to vis.director(func)? I have an array of people i want to blink, and this is my setup, but i don't see it working:
Code:
class Person(viz.VizAvatar, viz.EventClass): EDIT: my reason for the director function is because i need the waittime. otherwise the blink happens too fast and looks unnatural. |
Hi,
How is it not working? From what I can tell it should work fine. Anyway, to answer your question, you can pass arguments to director functions. Example: Code:
def func(x,y,z): Code:
#Create action that will make a face blink If you use the above example then you might need to change the BLINK_DURATION value since the actions are performed sequentially. |
All times are GMT -7. The time now is 09:51 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC