Member

|
Hello, This is because you are using the old triggeranimation() call. This does not work with MTS3Interface.js. You can find out about all the accessible MTS3Interface javascript functions on pages 161 and 162 of the Viewpoint Rich Media Authoring Guide available here.
|
| |
|
Junior Member
|
That was helpful, but I still need more help. I found the script for ToggleCollapse, which I guess must replace the separate Explode and Collapse functions. Pasted that code into line 88 of my code. See this link: http://www.sgmgroup.com/solidworks5.htmlNow how do I trigger the function? I tried to modify some code I found on page 165 of the guide, but that failed.
|
| |
| Posts: 4 | Registered: December 01, 2006 |    |
|
Member

|
Here, this should work:
vmp.TriggerAnim('ExplodeSteps');
vmp.TriggerAnim('UnExplodeSteps');
|
| |
|
Member

|
'ExplodeSteps' and 'UnExplodeSteps' are the names you gave your animations in the mtx file, not VET properties. I found them by downloading your mtx file and looking at it. 
|
| |
|
Member

|
You can view mtx files in any text editor. Even notepad.
Regards
|
| |
|