View Single Post
  #1  
Old 07-27-2009, 01:54 PM
yak yak is offline
Member
 
Join Date: May 2009
Posts: 22
a reflective action

Code:
import viz
viz.go()

#Initialize avatar
male = viz.add('vcc_male.cfg')
male.setPosition(0,0,5)
male.setEuler(180,0,0)

ANIM = 10
DUR = male.getDuration(ANIM)

#Start animation
male.execute(ANIM)
male.setAnimationSpeed(ANIM,0) #Speed must be set after animation is executed

#Use slider to modify animation time
slider = viz.addSlider(pos=(0.5,0.1,0))
def myslider(pos):
	male.setAnimationTime(ANIM,pos*DUR-0.01)
vizact.onslider(slider,myslider)
in this code ANIM=10 is equal to the default animation on vizard where teh male model is picking something up...how can i make that reflective so instead of the model picking the object up with his right hand having him pick it up with is left..
Reply With Quote