WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Making an object to appear after other object done animating (https://forum.worldviz.com/showthread.php?t=2148)

jaylocco 07-13-2009 01:23 AM

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:confused:

farshizzo 07-13-2009 09:47 AM

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) )

jaylocco 07-13-2009 06:17 PM

It works!! thank you..you're the best!!


All times are GMT -7. The time now is 07:56 AM.

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