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: |
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) ) |
It works!! thank you..you're the best!!
|
All times are GMT -7. The time now is 09:53 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC