WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2  
Old 07-28-2009, 12:33 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
  #3  
Old 07-28-2009, 12:34 PM
yak yak is offline
Member
 
Join Date: May 2009
Posts: 22
Quote:
Originally Posted by farshizzo View Post
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
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
Vizard tech tip: Blinking Avatars Jeff Vizard 3 11-24-2009 01:16 PM
adding more than 1 action for avatar animation slider control yak Vizard 0 07-21-2009 11:22 AM
how can I stop an action? nlfrnassimi Vizard 4 02-13-2009 12:59 AM
delays with <avatar>.act and speech vsully Vizard 15 08-23-2007 04:24 PM
download problems & avatar action vgracie Vizard 1 09-14-2006 11:29 AM


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


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