meaning of code
Hi i was wondering what this code means
import viz viz.go() wheelbarrow = viz.add('vcc_male.cfg') wheelbarrow.translate(0,1,3) wheelbarrow.state(2) wheelbarrow.rotate(0,3,0, -90) viz.clearcolor(0.5,0.5,1) def myslider(obj, pos): wheelbarrow.runAction( vizact.spin(0,-1,0,500*pos) ) viz.callback(viz.SLIDER_EVENT,myslider) I keep getting my male model to spin while walking. What I am trying to accomplish is that the slider controls my models walk. so if i slide my slider to teh end, my male model has completed one cycle of walking...If i slide it back he is being reversed(kind of like a fastforward and rewind )....I dont know if that made any sense. |
That code is adding a spin action to the object when the slider is moved. If you want to move through an avatar animation using the slider, the following code should help:
Code:
import viz |
Quote:
|
Quote:
|
All times are GMT -7. The time now is 06:25 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC