WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-09-2016, 06:51 AM
SivaKartheek SivaKartheek is offline
Member
 
Join Date: Oct 2015
Posts: 17
Question Regarding the visibility of avatars

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.865.895.775.795.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
Reply With Quote
  #2  
Old 01-11-2016, 06:11 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,462
Take a look at the viztask documentation in the reference and tutorial sections of the Vizard Help. You can wait for the walk action to finish before changing the avatar's visibility:

Code:
import viz 
import vizact
import viztask
 
viz.setMultiSample(4)                     
viz.go() 
viz.MainWindow.fov(70) 
viz.MainView.setPosition(0,3,-5.9) 

male = viz.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(): 
	yield viztask.waitKeyDown('m')
	for i in range(len(x)): 
		walk=vizact.walkTo([x[i],0,y[i]],walkSpeed=walkspeed[i])
		yield viztask.runAction(male,walk)
		if i==3: 
			male.visible(viz.OFF) 

viztask.schedule( walkAvatars() )
Reply With Quote
  #3  
Old 01-13-2016, 07:48 AM
SivaKartheek SivaKartheek is offline
Member
 
Join Date: Oct 2015
Posts: 17
thankyou very much for your help jeff

With BestRegards
SivaKartheek Sreeram
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
walking action of avatars SivaKartheek Vizard 1 12-14-2015 10:58 PM
problems with walking women avatars armo Vizard 6 04-07-2015 07:38 AM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 12:14 PM
avatars dig Vizard 4 09-20-2007 03:29 PM
Avatars in an array and link/unlink betancourtb82 Vizard 7 09-05-2006 04:06 PM


All times are GMT -7. The time now is 09:32 PM.


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