avatar automatically runs animation after fading into view
Hi, I am working with an avatar and would like it to start invisible, fade into view when I press 's' on the keyboard, and then stay idle until I press 'e' on the keyboard, whereupon it should begin walking.
I am currently attempting to accomplish the above with the following code (you can assume that IDLE_ANIM_NUM and WALK_ANIM_NUM refer to the correct animations): Code:
avatar = viz.add('avatar.cfg') Any advice? Is there something I'm missing about how animations interact with the action queue? For the record, I am using Vizard 3.15.0001. Thank you! |
Never mind, I've figured out how to take care of this based on a previous script of mine that I found. For anyone else with a similar problem, just call
Code:
avatar.idlepose(-1) Code:
avatar.idlepose = -1 |
All times are GMT -7. The time now is 09:11 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC