View Single Post
  #3  
Old 08-31-2006, 08:15 PM
pattie pattie is offline
Member
 
Join Date: Aug 2006
Posts: 32
Avatar always return in initial position

Thanks for your info. It actually helped me find a shorter and simpler solution.

Here it is:

avatar = viz.add('male.cfg')
avatar.translate(0,1,4)
mainview = viz.MainView
viewPosition = mainview.getPosition()
walk = vizact.walkto(viewPosition[0],viewPosition[1]-1,viewPosition[2]+6)
avatar.add(walk)
## This is the interesting code here
avatar.execute(10,delay_in=avatar.getduration(10)-.85,freeze=1)

I hope it can be useful

Patrick
Reply With Quote