WorldViz User Forum

WorldViz User Forum (
-   Vizard (
-   -   Speech during actions (

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


farshizzo 04-23-2007 10:35 AM


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:

#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 04:09 AM.

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