Hello Everyone,
I have a problem with the visibility of avatars the same code is given below for single avatar
PHP Code:
import viz
import vizact
viz.go()
viz.setMultiSample(4)
viz.go()
viz.MainWindow.fov(70)
viz.MainView.setPosition(0,3,-5.9)
male =addAvatar('vcc_male.cfg')
x=[-0.65, -0.1, -0.65, -0.1, -0.66] #x-stores the position of all points in xdirection here i have given only little data
y=[5.86, 5.89, 5.77, 5.79, 5.68]#lly for y
walkspeed=[1.39,1.38,1.5,0.8,0.6]
def walkAvatars():
for i in range(len(x)):
walk=vizact.walkTo([x[i],0,y[i]],walkSpeed=walkspeed[i])
male.addAction(walk)
if i==3:
male.visible(viz.OFF)
vizact.onkeydown('m',walkAvatars)
My question is that the avatars are not visible before the finishing the walking action of the avatars
can anyone help me how i can rectify this problem in such a way that the avatars are not visible after finishing the walking action
Thanks and Regards
SivaKartheek