Acrobat 3D Controlling Animations

Acrobat 3D Controlling Animations

You have to use Acrobat 3D JavaScript to control the playback. There are two options, neither of which is particularly simple:
1) Recreate the U3D model so it contains several different animation "sequences" rather than one long one. In JS you can then select which of them you want to be active (by name or number) using the scene.activateAnimation() method, so only that sequence plays back when the toolbar buttons are used. Starting and pausing playback is done using runtime.pause() and runtime.play(). You'd do something like this:
var _anim = scene.animations.getByIndex(3); // pick the fourth one
scene.activateAnimation(_anim);
runtime.play();
2) Write your own timeEventHandler(). This is also the only way to change the speed of playback or make it run in reverse. Note that unlike a video file, 3D animations do not have a uniform series of "frames" you can step through; they have keyframes defined by time intervals in seconds and between that all the movements are interpolated. Here's a typical use for TimeEventHandler, slow-motion playback:
var animSpeedFactor = 0.5;
function playAnimSlowly() {
    if(_anim.currentTime >= _anim.endTime)  _anim.currentTime = _anim.startTime;
    if (typeof _animTimer != "undefined") runtime.removeEventHandler(_animTimer);
    var _tps = _anim.currentTime;
    _animTimer = new TimeEventHandler();
    _animTimer.onTimeChange = true;
    _animTimer.onEvent = function(event) {
      _tps += event.deltaTime/animSpeedFactor;
      if (_tps <= _anim.endTime) _anim.currentTime = _tps;
      else {
      _anim.currentTime = _anim.endTime;
      runtime.removeEventHandler(_animTimer);
    runtime.addEventHandler(_animTimer);
function resetAnimSpeed(_asf) {
    animSpeedFactor = _asf;
    if (typeof _animTimer != "undefined") runtime.removeEventHandler(_animTimer);
The functions are documented in the Acrobat SDK under the "JavaScript > JavaScript for 3D Annotations" chapter.

Similar Messages

  • Controlling Animation in Acrobat 3D

    Need help controlling animation in Acrobat 3D.  Looking to control the playback of the animation by steps, not have it playback all at once.
    Please help!

    You have to use Acrobat 3D JavaScript to control the playback. There are two options, neither of which is particularly simple:
    1) Recreate the U3D model so it contains several different animation "sequences" rather than one long one. In JS you can then select which of them you want to be active (by name or number) using the scene.activateAnimation() method, so only that sequence plays back when the toolbar buttons are used. Starting and pausing playback is done using runtime.pause() and runtime.play(). You'd do something like this:
    var _anim = scene.animations.getByIndex(3); // pick the fourth one
    scene.activateAnimation(_anim);
    runtime.play();
    2) Write your own timeEventHandler(). This is also the only way to change the speed of playback or make it run in reverse. Note that unlike a video file, 3D animations do not have a uniform series of "frames" you can step through; they have keyframes defined by time intervals in seconds and between that all the movements are interpolated. Here's a typical use for TimeEventHandler, slow-motion playback:
    var animSpeedFactor = 0.5;
    function playAnimSlowly() {
        if(_anim.currentTime >= _anim.endTime)  _anim.currentTime = _anim.startTime;
        if (typeof _animTimer != "undefined") runtime.removeEventHandler(_animTimer);
        var _tps = _anim.currentTime;
        _animTimer = new TimeEventHandler();
        _animTimer.onTimeChange = true;
        _animTimer.onEvent = function(event) {
          _tps += event.deltaTime/animSpeedFactor;
          if (_tps <= _anim.endTime) _anim.currentTime = _tps;
          else {
          _anim.currentTime = _anim.endTime;
          runtime.removeEventHandler(_animTimer);
        runtime.addEventHandler(_animTimer);
    function resetAnimSpeed(_asf) {
        animSpeedFactor = _asf;
        if (typeof _animTimer != "undefined") runtime.removeEventHandler(_animTimer);
    The functions are documented in the Acrobat SDK under the "JavaScript > JavaScript for 3D Annotations" chapter.

  • Controlling Animation Tutorials

    I am evaluating the Trial version of Adobe Acrobat 3D and am going through the tutorials "Keyframe Animation" and "Controlling Animations" at this moment. I have followed everything step by step and have successfully created the animation model and imported it into a PDF. However, I cannot seem to get the javascript buttons to work, as described in the "Controlling Animations" tutorial. I have them created and have input the java commands. However, they are not controlling the animation. I have also successfully embedded the supplied javascript file and pasted the appropriate javascript code in the Document Processing tools.
    Are there missing steps with regards to how to connect the java commands to the animation? Does the Javascript need to be manually edited for the name of the specific animation? Not knowing Java Script very well, I am wondering if there are assumed steps in the tutorial that I am not aware of.
    Any help would be great!
    Thanks!

    Hi!
    I've been playing around with the Controlling Animations pdf, with my own model in it, trying to make two animations play at the same time but I can't get it right. Is it possible? When I start one animation and then starts the other the first one stops. They seem to interrupt each other. What am I doing wrong?
    I'm using the AnimationController.js with
    var AnimatePanel400 = new AnimationController(scene.animations.getByName("Anim-400VU"));
    and
    var AnimatePanel402 = new AnimationController(scene.animations.getByName("Anim-402VU"));
    I have one button with this script on: PlayAnimation400(0,5);
    and another with: PlayAnimation402(0,5);
    They call the functions:
    (global variables)
    var state400=false;
    var state402=false;
    (document functions)
    function PlayAnimation400(start, end)
    { if (state400 == false)
    { state400=true;
    PlayPageAnimation400(0, start, end, state400);
    else if (state400 == true)
    { state400=false;
    PlayPageAnimation400(0, start, end, state400);
    function PlayPageAnimation400(page, start, end, stateIn)
    var anim400 = getAnnots3D(page)[0].context3D.AnimatePanel400;
    anim400.setPlayRange(start,end);
    anim400.pause();
    anim400.setPlayForward(startIn);
    anim400.play();
    and the same for function PlayAnimation402.
    Any help would be appreciated.
    Regards, Joachim

  • Error Message:  Unable to load Acrobat Reader control

    Error Message:  Unable to load Acrobat Reader control.  Please make sure it is correctly installed. The user I am dealing with has Adobe_Reader_9.4.4 & AdobeAcrobatStd911-L.  Can you give me some assistance as to why she is unable to open her file.

    That file only? And before version X, Adobe did not recommend having Acrobat and Reader installed in the same Win computer...

  • How to control animation with touch

    Hello! I need some help with controlling animations with touch. I am building a fake app and need to 'unlock' an iphone (slide an arrow along a track and then have it fade into another page). I have been using http://forums.adobe.com/message/4865693 that thread. The prototype link listed there is similar to waht I need to recreate, but I think I need an 'on touch' actino instead of a mousemove one.
    http://assets.ordienetworks.com.s3.amazonaws.com/the_occasional/checkerPro/checkerPro.html
    That is a link to the Edge file I have been working on, using the info in the thread above. It is broken at the moment, and I am terrible with javascript and have no idea how to move forward. I have figured that I'll need an 'on touch' action instead of the mouseover one, but I'm not sure how to build it.
    If there is a working example of this on a different thread that I've missed I'd love a link as well!!
    Thank you!!

    Hi, akall-
    There are a number of touch events that you can use to accomplish what you want.  You can try using the touchmove event instead of the mousemove event, and stick your code in there.
    Hope that helps,
    -Elaine

  • Why does Adobe Acrobat now control the photos on my pc?

    Why does Adobe Acrobat now control the photos on my pc?

    Hi,
    Thank you for your reply.
    After I downloaded Acrobat, Adobe Reader tries to control viewing of my photos.  When I plug my digital camera into the PC, all the files are labeled “PDF”; the files still have the .jpg extension, though.  For photos on my PC, when I try to open them, Adobe reader insists on opening them, but it can’t, and I get the message:
                “Adobe Reader could not open photo.jpg because it is either not a supported file type or because the file has been damaged”
    I attached several photos to an e-mail that I sent after downloading Acrobat, and I could not open the photos before sending the e-mail (in order to verify that they were the correct photos before I sent the e-mail).  Adobe Reader was my only option when I clicked “open” to view a photo, and it would not open the photo.
    I assume that I did something during the Acrobat download process that has caused this situation.  My plan is to uninstall Acrobat and then re-install it and this will hopefully remove this situation.
    Any suggestions you have about this situation would be greatly appreciated.
    Doug McLean
    469-766-9679

  • Control Animation from Flash

    Hello,
    Does anyone know how I can control multiple animations (imported flash swf files) in a slide.
    These swf files are mostly 2 or more frames long with a stop on the first frame.
    I need to be able to click on them in Captivate 4 and advance to the next frame in the swf.
    Reading actionscript on these frames would be a plus.
    Any help would be appreciated.
    Thanks

    Yes you can add pretty much what you want in the swf's you import into Captivate. That is really the beauty of it because it allows you to use some pretty advanced stuff directly in your Captivate productions.
    You can also implement communication between your swf and Captivate to allow advanced integration betweeen the two. You can see a list of the different variables here: http://www.captivate4.com/2009/04/28/system-variables-in-captivate-4-%e2%80%93-a-complete- list/
    /Michael
    Click here to visit the www.captivate4.com blog

  • Acrobat 9: Control over font in text box

    Versions: OS X 10.8.5 with Acrobat Pro 9, latest patch.
    I am experimentally preparing a four day training course by adding my instructor information to a PDF of the slide show.  There are only 850 slides, so it makes sense to experiment with this small document.
    All is going well.  I have created some custom stamps.  Acrobat has only crashed twice, losing not more than two hours work as a result.  I am optimistic I will be good to go in 10 more days.
    I have just copied some test into a text box and it copied as black and blue text with a larger font than the standard red font that I have been seeing until now.
    It occurs to me that this implies there may be some control over the text.  I realize that Acrobat is not meant to be a document preparation tool, so I hunted around somewhat for a way to change the text box text to not-red, gave up and I have been putting up with it until now.
    However, there are implications (but no clearly stated solutions) that there is a way to change the font, size and colour of text in text boxes.
    Do you know how?  I cannot work it out, nor can I find a solutoin.  I can see that the Commenting preference pane offers Small Medium and Large text.  There does not seem to be any other control other than the style (italic, bold, superscript, subscript) that is offered in the context menu.
    Hints?  Thoughts? 

    Pryanja.
    Thanks again.  If offers a dropdown for Colour, a box for style (plain, bold italic etc) and a button marked more, but they seem to do nothing at all.  They don't change what I type, and they don't affect selected text.  Looks to me tha they just take up some toolbar space.
    Is it possible that it does not work on Mac?

  • Digital signatures in Acrobat activex control

    Hi, can anyone help me please.
    I'm embedding the acrobat reader activex control inside a winforms application (C#).
    I can load a document and it does display on the winform application.
    Now, in the PDF document, there is a signature field, so when you click on the signature field it is suppose to pop up a window that acquires the signature from a signature pad (I've got a topaz and wacom signature pad connected to the pc).
    Instead a different signature window is displaying, where you select from a list of certificates to be inserted.
    Now, first of all is it possible when using the activex control to obtain signatures from external devices like my signature pads? I just can't seem to get this to work.
    Regards
    Gerhard

    It is Adobe Reader X, yes it does work with Reader in standalone mode, no web browser also the same thing, doesn't pop up the window to select the signature pad to get the signature from.

  • Safari is not allowing Adobe Acrobat to control PDF viewing, PDFs are opening in Preview

    After the latest update of Safari, in Snow Leopard, when I attempt to open a document as a PDF, the document is opening in Preview rather that Adobe Acrobat software.  This has never happend before.  I have been openning PDFs in Acrobat in every previous version of Apple Software and every version of Adobe Acrobat.  The support personnel for the web site where the PDF documents are created suggests that some plug-in control in Safari has been changed in the latest update. 

    I thought it was clear but here it is again...
    1. While in the finder select any pdf file by clicking on it.
    2. In the File menu click the Get Info menu item or just click command + I ("eye").
    3.  The finder info window for that selected pdf will be displayed.
    4. You will see various sections of the info window separated by divider lines.  One will say Open With and have a popup menu below it.  From that popup select the app you want to open that pdf.
    5. If you want all pdf's to be handled by the chosen app click the Change All... button below the popup memu.

  • Accessibility 508 issue in Acrobat; accessibility controls grayed out

    Hi - I have to check PDF's in two different versions of Acrobat.  On my one computer, the accessbility functions work great.  Then when I went over to my other office on my laptop, I tried checking the accessbility and all of the same controls on the other computer were grayed out.  I'm pretty puzzled by this so I'm not sure if the laptop computer has some kind of persmissions blockage (I do this work for a government agency) or what.
    Below is a side by side screenshot of the two computers' versions of Acrobat
    Can someone tell me why those controls are grayed out and what I need to do to turn them on?  Thanks.

    Hi - thank you for your reply.  One strange thing about this situation is on both of these computers, the Abrobat icon says "Pro" for both of them.  That's why I was so puzzled about this because although they appear to be version X and XI, they both said Pro but only one allows me to do accessibility.  Strange.

  • Controlling animation with the movement of a mouse

    I know there are ways to control videos and swfs with the actions of a mouse in Flash Catalyst. But how can you set it so that the swf animation will go back and replay from the beginning once the mouse moves anywhere on the trigger? My animation plays once on rollover (which still does not suffice) but then stays on the last frame when I try to trigger it once more. Any Ideas?

    I'm actually curious about an answer to this question as well. I have rollover slidelets that will expand a tab when activated, but once the rollover has been completed, and a users mouse leaves the rollover area, it does not return to the original state, but instead the tab remains expanded. Is there any way to return an object to its original state once the mouse leaves the rollover area?

  • G580 brightness control animation

    Hi.
    I just got my G580 laptop today. It's the one with Intel Core i7 3520M and Nvidia GeForce GT 630M @  2GB DDR3 and 8 GB RAM in my case.
    I installed the drivers from the dvd after installing a genuine win 7 x64 professional N.
    The animation for the brightness control just stopped working. You know.. the thing you get on the screen when using the Fn+up/down keys. It's stuck in one position and it doesn't follow the brightness level which I can adjust normally (no problems there thank goodness).
    Any ideas ? Why's that happening ?  I think the nvidia driver performed some update at some point. Please don't just point to that... be helpful instead.
    Any suggestions ?
    Thanks

    Hi
    Welcome to the forums
    You mean the on screen display which comes after pressing the hotkey? For that you will have to install the lenovo energy management driver.
    Ishaan Ideapad Y560(i3 330m), Hp Elitebook 8460p!(i5-2520M) Hp Pavilion n208tx(i5-4200u)
    If you think a post helped you, then you can give Kudos to the post by pressing the Star on the left of the post. If you think a post solved your problem, then mark it as a solution so that others having the same problem can refer to it.

  • Using qwerty to control animation whith actionscript

    hi.
    i´m trying to use my qwerty keyboard keys to control
    movies. what i want to say is. when i press q, it dysplay movie 1,
    if i press w, it display movie 2 and so on and so on.
    the problem is, when i put some actions in the movies it
    doesn´t work. why?
    because whem i use a simple animation on movies it behaves
    well. when i put actions it doen´st work.
    please help me cause i´m getting my brain burn.

    you better show us your sample...
    I cant get your problem clearly....

  • Controlling animated GIF

    Hi everyone,
    Just started working with images in JavaFX and was wondering if there's any way to control an animated gif. In my example I need to make a gif go through its animation sequence once and only once. How can I do this?

    Modify the Gif image with a good editor to remove the auto-repeat flag...

Maybe you are looking for