WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-13-2009, 01:23 AM
jaylocco jaylocco is offline
Member
 
Join Date: Jun 2009
Posts: 19
Question Making an object to appear after other object done animating

How do I make an object to appear after other object done animating.as example below;

ObjA = viz.add('oA.WRL')
ObjA.setPosition(0,0,0)
ObjA.visible( viz.OFF )

ObjB = viz.add('oB.WRL')
ObjB.setPosition(5,0,0)

PickAction = vizact.sequence(vizact.move(-1,0,0,1),vizact.spin(0,1,0,45,1))
vizact.onpick( objB, objB.runAction, PickAction )

then How do I make visible the objA (objA.visible(viz.ON)) after objB animation is done?

TQ
Reply With Quote
  #2  
Old 07-13-2009, 09:47 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can use the vizact.call action to call arbitrary functions. Just change your PickAction to the following:
Code:
PickAction = vizact.sequence( vizact.move(-1,0,0,1) , vizact.spin(0,1,0,45,1) , vizact.call(objA.visible,True) )
Reply With Quote
  #3  
Old 07-13-2009, 06:17 PM
jaylocco jaylocco is offline
Member
 
Join Date: Jun 2009
Posts: 19
It works!! thank you..you're the best!!
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
retrieve Object names Geoffrey Vizard 11 12-11-2009 04:26 AM
Making an object flash on and off constantly tomo_the_third Vizard 1 06-23-2009 11:58 AM
reseting an object durf Vizard 3 03-17-2009 11:48 PM
Child Object Rotation paulgoldberg Vizard 5 09-05-2006 11:33 AM
rotate to object jargon Vizard 1 08-08-2005 12:20 PM


All times are GMT -7. The time now is 08:37 AM.


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