WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-17-2015, 04:47 AM
SivaKartheek SivaKartheek is offline
Member
 
Join Date: Oct 2015
Posts: 17
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)
Reply With Quote
 


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
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


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


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