#1
|
|||
|
|||
motion in vzard
Dear all
Good Morning , I have created a 40 people and i gave the walk action but all people are not moving only 4 people are moving . The code has given below and can anyone please help me how can i rectify this problem p = [5.1,5.3,5.5,5.7,5.9, 4.1,4.3,4.5,4.7,4.9 ] p1 = [ 4, 4.2,4.4,4.6,4.8,5,5.2,5.4,5.6,5.8,6] for i in p: male = viz.addAvatar('vcc_male.cfg') male.setPosition([i, 0, -1]) male.setEuler([0,0,0]) male.state(18) for j in p1: female = viz.addAvatar('vcc_female.cfg') female.setPosition([j,0,-1.3]) female.setEuler([0,0,0]) female.state(18) for i in p: male1 = viz.addAvatar('vcc_male2.cfg') male1.setPosition([i, 0, -1.6]) male1.setEuler([0,0,0]) male1.state(19) for j in p1: female1 = viz.addAvatar('vcc_female.cfg') female1.setPosition([j,0,-1.9]) female1.setEuler([0,0,0]) female1.state(20) ##addng the walking action to the pedestrains def walkAvatars(): walk1 = vizact.walkTo([3, 0,11]) vizact.ontimer2(10,0,male2.addAction,walk1) vizact.ontimer2(5,0,female1.addAction,walk1) walk2 = vizact.walkTo([6.9,0,11]) male.addAction(walk1) male1.addAction(walk2) female1.addAction(walk1) female.addAction(walk2) vizact.onkeydown('m',walkAvatars) |
#2
|
|||
|
|||
Hello everyone,
I found the issue but I had new problem now is that all the avatars are moving simultaneously, is there a way that i can give my own trajectories for the avatars to move. If so where can i find the information for tutorial Any help is highly appreciated Thank you all in advance |
#3
|
|||
|
|||
If you want the avatars to follow their own paths, create different walkTo actions with different walk to points.
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Motion Builder Without Live Characters? | lafortuj | Precision Position Tracker (PPT) | 2 | 07-30-2015 05:21 PM |
How to track Continuous Motion | cmeans | Vizard | 1 | 04-01-2015 03:59 AM |
PPT Mocap and Motion Builder Connection Problem | hxphan | Precision Position Tracker (PPT) | 3 | 02-22-2011 11:01 AM |
an object in motion does not stay in motion? | driechers | Vizard | 2 | 11-09-2010 03:51 PM |
Motion Capture & CyberGloves | EnvisMJ | Vizard | 1 | 10-01-2009 04:21 PM |