![]() |
| Adobe Forums » Software Discussions » Adobe Acrobat » Acrobat Plugins and Utilities » Acrobat 3d » help with basic animation control |
| Tags: |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
Could someone take a look at this file and see what I am missing? there are 2 items in the scene. I have a key frame animation embedded into the u3d file. The camper door is simply suppose to open. I'm using the Animation Controller.js attached to the annotation. And when you click the rectangular gray button above it is simply suppose to play the animation.
Can someone let me know what step I have missed? <http://www.tbnewmedia.com/test/Animation%20Controller.js> <http://www.tbnewmedia.com/test/camper2.pdf> -Thanks! |
|
|||
|
Tom,
The JavaScript attached to the button on the page needs to get a reference to the 3D annotation's script context in order to send commands to it. Here's how to do that (replace your existing script with the following): var a3d = getAnnots3D( pageNum )[0]; if ( a3d && a3d.activated && a3d.context3D ) { var c3d = a3d.context3D; c3d.MyAnimation.play(); ** Grayson |
|
|||
|
I tried the following code but it didn't function. Can u take a look at the file and see if you can get it to work? Did it run for you?
Maybe its a hierarchy thing. I also had to set the playback style to none because it wouldn't stop playing by default. Let me know... |
![]() |
| Thread Tools | |
| Display Modes | |
|
|