WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-23-2007, 02:20 AM
zoltantoth zoltantoth is offline
Member
 
Join Date: Apr 2007
Posts: 5
Speech during actions

Dear Worldviz!

Is there any way to work out to get the avatar to speak during an action?

I have an action loop ( moving around ) and I want to get the avatar to speak during moving. I'm using the avatar.addAction(animation), avatar.add(speak) to perform these actions

Zoltan
Reply With Quote
  #2  
Old 04-23-2007, 10:35 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Yes, you can play two actions at the same time. When you add actions to objects you can specify which action pool to add it to. Action pools allow you to run multiple actions on objects in parallel. Please have a look in the documentation under the Actions section.

For example, lets say you wanted to perform a speak action and animation action in parallel:
Code:
#Create an action to play animation 3
anim = vizact.animation(3)

#Create an action to speak 'words.wav'
words = vizact.speak('words.wav')

#Play both actions on the avatar simultaneously
avatar.add(anim,1) #Add action to pool 1
avatar.add(words,2) #Add action to pool 2
Reply With Quote
  #3  
Old 05-02-2007, 03:11 PM
zoltantoth zoltantoth is offline
Member
 
Join Date: Apr 2007
Posts: 5
Great! Thank you for the answer.
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 03:34 AM.


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