WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Old 10-14-2009, 04:45 PM
v-clizzin v-clizzin is offline
Join Date: Sep 2006
Posts: 15
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):

avatar = viz.add('avatar.cfg')

def keyboard(key):
    if key == 's':
        avatar.runAction(vizact.fade(0.0, 1.0, 1.0))
    if key == 'e':
However, I've found that the avatar begins walking immediately after fading into view. This does not happen when I call 'avatar.alpha(1)' to simply make the avatar appear instead of fading into view, but my goal is to make the avatar fade in instead of simply appearing. I have tried calling 'avatar.clearActionList()' and 'avatar.state(IDLE_ANIM_NUM)' after the runAction call, but the avatar still begins walking immediately after fading in.

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!
Reply With Quote
Old 10-14-2009, 05:01 PM
v-clizzin v-clizzin is offline
Join Date: Sep 2006
Posts: 15
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
before adding/running any actions on the avatar. This post seems to indicate that
avatar.idlepose = -1
would also work. I am not sure what is the preferred style.
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
adding more than 1 action for avatar animation slider control yak Vizard 0 07-21-2009 11:22 AM
Is there a way to get what animation an avatar is performing? Enlil Vizard 1 03-04-2009 11:13 AM
Avatar bvh animation Jerry Vizard 3 07-31-2006 03:11 PM
avatar animation problems jrodman Vizard 1 01-18-2006 09:12 AM
Making an avatar speak while performing an idling animation vr_boyko Vizard 1 10-05-2004 04:23 PM

All times are GMT -7. The time now is 02:04 AM.

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