Thread: getduration
View Single Post
  #1  
Old 09-07-2005, 02:00 PM
dominic dominic is offline
Member
 
Join Date: Aug 2005
Posts: 8
getduration

Hi,

I have the following code in a director function. I want to turn the head of an avatar and want to wait till its done before I do anything else. How can I get the duration of the just created animation?

avatar = viz.add('male.cfg')
look_at = avatar.headto(angle,0,0)
avatar.act(look_at)

viz.waittime(avatar.getduration(look_at))# didnt work

thanks,

dominic
Reply With Quote