WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-06-2007, 02:10 PM
andywhite530 andywhite530 is offline
Member
 
Join Date: May 2007
Posts: 2
setAnimationSpeed

I'm having trouble with the setAnimationSpeed command, below is a simplified version of what I'm trying to do, why isn't it accelerating the walk animation?

import viz
viz.go()
avatar = viz.add("male.cfg")
avatar.state(2)
avatar.setAnimationSpeed(2,5)

btw it does make it faster (and all animations) if the first number in parentheses is 0: avatar.setAnimationSpeed(0,5)

Any ideas? Thanks.
Reply With Quote
  #2  
Old 06-06-2007, 02:19 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

The documentation for the setAnimationSpeed command should explain it. When you use the avatar.state command, you are blending the animation into the avatars cycle, which is animation 0. If you were to execute the animation once using the avatar.execute command, then you would have to specify the actual animation number, in this case 2.
Reply With Quote
Reply

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


All times are GMT -7. The time now is 11:16 PM.


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