WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-21-2005, 01:18 PM
oscar oscar is offline
Member
 
Join Date: Oct 2004
Posts: 7
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 ?
Reply With Quote
  #2  
Old 01-21-2005, 01:25 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Do you want to animate the ball moving and then animate it changing size?
Reply With Quote
  #3  
Old 01-21-2005, 01:42 PM
oscar oscar is offline
Member
 
Join Date: Oct 2004
Posts: 7
I`ll like to animate the ball with tha goto function, and when the ball finish, chage the size of it.
Reply With Quote
  #4  
Old 01-21-2005, 02:35 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
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


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


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