WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-05-2004, 05:12 PM
vr_boyko vr_boyko is offline
Member
 
Join Date: Sep 2004
Posts: 19
Making an avatar speak while performing an idling animation

Hi there,

If I have an agent who is currently performing some type of idling behavior/animation, but I want it to speak on command, how do I do so?

I read about the 'execute' command in VizHelp, that states: "Perform animation 2 once while animation 1 is going" However, I think something about the speak command is incompatible with execute, because I get an 'AttributeError: Action instance has no attribute '__int__''.

If I do write something like:
agent.idle(16) #where 16 is the idling animation
speech = agent.speak(---, ---, ---)
agent.act(speech)

Then the program has to wait until the idling behavior is done until the avatar can speak.

Thanks for your help!
Reply With Quote
  #2  
Old 10-05-2004, 05:23 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

You can perform actions simultaneously by adding them to different channels. The default channel is 0. So try adding the speech action to channel 1:
Code:
agent.act(speech,1)
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


All times are GMT -7. The time now is 10:26 PM.


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