Viewpoint Forums
Viewpoint Forums
JavaScript
Call function once animation finishes|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Here is the code I use to create an animation... what code would I add to call a function when the animation finishes?
function ZoomToDistance(distance) { i++; var keyframes = "0 1"; var timeline = "* ["+distance+"]"; targ = MTSMarkup("Target", "", "Name", "MTSCamera", "Property", "orbd", "Timeline", "T1"); time = MTSMarkup("Time", keyframes); tili = MTSMarkup("Timeline", timeline, "Name", "T1", "Type", "1D"); tiEl = MTSMarkup("MTSTimeElem", targ+time+tili, "Type", "Keyframe", "Name", "myCameraAnim"+i, "On", "0"); vmp.Execute(tiEl); vmp.TriggerAnim("myCameraAnim"+i); } |
||
|
|
Member |
Does the animator doing the animation exist in the MTX via the <MTSTimeElem> tag? Or is it only written into the mtx dynamically via your javascript?
|
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
JavaScript
Call function once animation finishes
