WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-27-2008, 08:15 PM
k_iwan k_iwan is offline
Member
 
Join Date: May 2006
Posts: 115
Red face It's working...

Wait... It's working now?!?!?!

Kind Regards,
Iwan
Reply With Quote
  #2  
Old 04-27-2008, 08:42 PM
k_iwan k_iwan is offline
Member
 
Join Date: May 2006
Posts: 115
Unhappy It's not working...?

I pasted my code here. The guy is supposedly running around making a big circle, but he only stretches his arms while sliding around.

Code:
import viz
import math

iwan = []
for i in range(20):
	n = [math.sin(i)*1, 0, math.cos(i)+1]
	iwan.append(n)
	
print iwan

male = viz.add('male.cfg')
male.idlepose(12) #Use animation 12 as the idle pose

for each in iwan:
	print "male.act(vizact.walkto(",each,"))"
	male.addAction(vizact.walkto(each, 1.5, 90, 2)) # 2=walking anim
	
if __name__ == "__main__":
	viz.go()
Could someone tell me where the mistakes that I made in my script?
Thank you very much.
Reply With Quote
  #3  
Old 04-28-2008, 11:21 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The vizact.walkto command does not accept lists for the position. This will be fixed in a future release. For now you must use the following code instead:
Code:
vizact.walkto(each[0],each[1],each[2], walkSpeed=1.5, turnSpeed=90, walkAnim=2)
Reply With Quote
  #4  
Old 04-28-2008, 06:48 PM
k_iwan k_iwan is offline
Member
 
Join Date: May 2006
Posts: 115
Red face Thank you...

Hi,

Thank you. Why didn't I try that before?
I will keep in mind that "vizact.walk" does not accept lists to specify position.

Have a great day.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Animation Tracks.... k_iwan Vizard 2 03-26-2007 05:52 PM
Jumpy animation Elizabeth S Vizard 1 11-08-2006 02:11 PM
animation sequence pkhoosh Vizard 2 01-23-2006 08:03 AM
avatar animation problems jrodman Vizard 1 01-18-2006 09:12 AM
Making an avatar speak while performing an idling animation vr_boyko Vizard 1 10-05-2004 04:23 PM


All times are GMT -7. The time now is 05:49 AM.


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