PDA

View Full Version : a reflective action


yak
07-27-2009, 01:54 PM
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..

farshizzo
07-28-2009, 12:33 PM
There is no easy way to do this within the script. Your best bet is to mirror the animation within a modelling program, like 3dsMax, and re-exporting the animation.

yak
07-28-2009, 12:34 PM
There is no easy way to do this within the script. Your best bet is to mirror the animation within a modelling program, like 3dsMax, and re-exporting the animation.

I dont even know how to do that....I am somewhat new to 3dsmax