Page 2
Animation Control Updated: 3/26/2008 I 1.5 This tutorial shows how to use the provided script to easily control the playing of an animation in a 3D Scene. See Page 12 for an example of a finished product. With the script supplied in this tutorial, all aspects of an animation can be controlled with the javascript code.
Page 3
Obtain a 3D model with an embedded animation or create one by following the Keyframe Animation tutorial. You can create animations using the Adobe 3D Toolkit that comes with Acrobat 3D. You can also create a very simple explode animation in the next step. If you already have a 3D model in your PDF, jump to Step 3.
Page 4
Animation Control Updated: 3/26/2008 I 1.5 Select the Button tool from the menu: Tools -> Forms -> Button Tool. Add a button to the left of the 3D Annotation. Access it’s properties dialog by double- clicking it or by “Properties” in it’s right-click menu. Under the “Options”...
Page 5
Animation Control Updated: 3/26/2008 I 1.5 Create several more buttons with the following labels and javascript actions. “Play All” — PlayAll(); “Play Next” — PlayNext(); “Rewind All” — PlayAll(true); “Rewind Last” — PlaySelected(true); Select the Menu Advanced -> Document Processing -> Document Javascripts.
Page 6
Animation Control Updated: 3/26/2008 I 1.5 Use the “Select Text” tool to copy this code. (continued) Note: This is also attached to this document as “DocumentJavascripts.js.txt” var AnimationSections = [[0,2],[2,5],[5,9]]; var SectionCount = AnimationSections.length; function Context() return getAnnots3D(0)[0].context3D; function Stop() Context().MyAnimation.pause();...
Page 7
Animation Control Updated: 3/26/2008 I 1.5 Take a minute to observe the animation in your chosen 3D Model. Open the 3D Model in the 3D Toolkit and use the animation control at the bottom of the screen to start/stop/seek the animation. Decide how you might want to break it down into individual steps or sections.
Page 8
Animation Control Updated: 3/26/2008 I 1.5 Select the Tools -> Forms - > ListBox Tool menu and create a listbox somewhere near your buttons. The Properties dialog should open as soon as it’s created. Navigate to the “Options” tab and add an item for each section of the animation you decided on in step 10.
Page 9
Animation Control Updated: 3/26/2008 I 1.5 How to use the rest of the script... AnimationController.play() Begins playing animation from the current position in the current direction. AnimationController.pause() Freeze the animation at the current position. Calling play() afterward will resume the animation right where it left off. AnimationController.reset() Stops the animation and resets the position to the beginning or the end (depending on the last call to setPlayForward()).
Page 10
Animation Control Updated: 3/26/2008 I 1.5 How to use the rest of the script... AnimationController.setPlaySpeed(speed) Sets the speed of the animation playback relative to the default speed but doesn’t start playback. Note: To play an animation in reverse, use setPlayForward(false) instead of setPlaySpeed(-1) speed <...
Page 12
Owners Manual M250 Gas-powered Push Mower 4. c ection arburetor iSaSSembly will need the following tools 1. #2 phillips screw driver 2. Solvent and a soft brush 3. A rag for wiping up possible residual gasoline WarninG: * Gasoline is flammable, dispose of it properly * Always wear gloves when working with gasoline or other solvents Click on the Step number using the hand tool 1 Carburetor Disassembly...
Need help?
Do you have a question about the 62000112DM - Acrobat 3D - PC and is the answer not in the manual?
Questions and answers