WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   a reflective action (https://forum.worldviz.com/showthread.php?t=2185)

yak 07-27-2009 01:54 PM

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

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

Quote:

Originally Posted by farshizzo (Post 8436)
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


All times are GMT -7. The time now is 11:33 PM.

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