WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Help (https://forum.worldviz.com/showthread.php?t=278)

oscar 01-21-2005 01:18 PM

Help
 
HI,
I`m trying to move a simple ball after that I`ll change the size of the object, But I need that this two events happen one by one, not the both at the same time.

Can Any body help me ?

farshizzo 01-21-2005 01:25 PM

Hi,

Do you want to animate the ball moving and then animate it changing size?

oscar 01-21-2005 01:42 PM

I`ll like to animate the ball with tha goto function, and when the ball finish, chage the size of it.

farshizzo 01-21-2005 02:35 PM

If you have vizard 2.5 you could do something similar to the following:
Code:

move = vizact.goto(0,0,5,1)
changeSize = vizact.scale_node(3,3,3)
ball.add(move)
ball.add(changeSize)

If you have an earlier version of vizard then you would have to use callbacks:
Code:

def ballStop(object,type):
        if type == viz.MOVE:
                ball.scale(3,3,3)

ball.callback(viz.STOP_EVENT,ballStop)

ball.goto(0,0,5,1)



All times are GMT -7. The time now is 11:14 AM.

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