![]() |
|
|
|
#1
|
|||
|
|||
|
Wait... It's working now?!?!?!
Kind Regards, Iwan |
|
#2
|
|||
|
|||
|
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()
Thank you very much. |
|
#3
|
|||
|
|||
|
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) |
|
#4
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |