WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Speech during actions (https://forum.worldviz.com/showthread.php?t=1057)

zoltantoth 04-23-2007 02:20 AM

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

farshizzo 04-23-2007 10:35 AM

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


zoltantoth 05-02-2007 03:11 PM

Great! Thank you for the answer.


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

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