WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-04-2009, 07:29 AM
Enlil Enlil is offline
Member
 
Join Date: May 2008
Posts: 61
Is there a way to get what animation an avatar is performing?

Hello,

Like the topic says, is there a good way to get what animation an avatar is currently performing? GetActionRunning and GetCycleRunning will both tell you if you are running a certain animation, but querying for all animations would be an extremely awkward way to get the animation you are doing. So, is there a better function?

Thanks,
Christian
Reply With Quote
  #2  
Old 03-04-2009, 11:13 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
You could create a sub-class of VizAvatar, override the execute/state function, and keep the last set animation in a field variable.

Because it is possible to have multiple animations going at once, the Vizard API only has this yes/no query function. I think its good because a boolean is simpler to deal with than a list of all running animations. Usually my program logic has been interested in if a animation is running, not in what the animation actually is. For clarity, it might be nice to re-name the function 'isCycleRunning' and adding a 'getCyclesRunning' to return a list.
__________________
Paul Elliott
WorldViz LLC
Reply With Quote
Reply


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
Avatar animation Joran Vizard 1 08-17-2007 09:44 AM
Avatar bvh animation Jerry Vizard 3 07-31-2006 03:11 PM
creating avatar animation class? Vbents Vizard 1 01-18-2006 10:34 AM
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 06:05 PM.


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