WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 07-13-2009, 01:23 AM
jaylocco jaylocco is offline
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 example below;

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

ObjB = viz.add('oB.WRL')

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?

Reply With Quote
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 action to call arbitrary functions. Just change your PickAction to the following:
PickAction = vizact.sequence( vizact.move(-1,0,0,1) , vizact.spin(0,1,0,45,1) ,,True) )
Reply With Quote
Old 07-13-2009, 06:17 PM
jaylocco jaylocco is offline
Join Date: Jun 2009
Posts: 19
It works!! thank're the best!!
Reply With Quote

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 02:51 PM.

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