Automatic Motion Preset Previews

After watching my last tutorial on creating your own animation presets, the folks over at Ajar Productions whipped up a nice extension that automatically creates the preview and places it in the appropriate directory. Very cool!

After downloading the extension, all you need to do is select the preset and run the command and the current document will be exported and used as the preview. Make sure that your current document is the one you want to use as a preview though. Great extension guys!

Lee

Comments

  1. October 18th, 2008 | 1:16 am

    Thanks you Lee and Thanks to Ajar Productions :)
    Why Adobe don’t have create it before ?

  2. October 18th, 2008 | 1:36 am

    Life just gets easier and easier doesent it! Is it me or are Flash and After Effects getting more and more similar?

    Great tutorial Lee!

    Harry.

  3. October 18th, 2008 | 2:46 am

    but…
    when i test on Mac, extension don’t work
    an error in line 31 :)

  4. October 18th, 2008 | 3:09 am

    oups !
    it’s normal under a Flash CS4 french language version :)
    the good code for french users is :

    //Export as Motion Preset Preview
    //Justin Putney
    //http://putney.ajarproductions.com
    //version 1.0.0

    var dom = fl.getDocumentDOM();
    var sel = fl.presetPanel.getSelectedItems();

    if(sel.length == 1) run();
    else if(sel.length > 1) alert (“You have more than 1 preset selected.”);
    else if (sel.length < 1) alert (“You must select a motion preset first.”);

    function run(){
    var sItem = sel[0];
    //check to make sure it’s not a folder
    if(sItem.isFolder){
    alert(“Please select a preset and not a folder.”);
    return;
    }
    //check to make sure it’s not a default
    if(sItem.isDefault){
    alert(“This cannot be applied to a default preset.”);
    return;
    }
    fl.trace(sItem.path);
    var pathArr = sItem.path.split(“/”);
    if(pathArr[0] == “Présélections personnalisées”) pathArr.shift();
    pathArr.unshift(“Motion Presets”);
    var fileName = pathArr.join(“/”) + “.swf”;
    var swfFile = fl.configURI + fileName;
    //export swf
    dom.exportSWF(swfFile, true);
    //refresh panel
    fl.presetPanel.selectItem(sItem.path, true, false);
    fl.presetPanel.selectItem(sItem.path, true);
    }

  5. October 18th, 2008 | 4:00 am

    >Lee>
    in order to help french people, i’ve wrote a post on my blog.
    I hope it is not a doublon (i’ve linked on TheFlashBlog and Ajar production).
    Thanks a lot!
    JP

  6. Abel Hernandez
    October 18th, 2008 | 4:13 am

    Hi, lee , excuse but i had some problems with it , extension manager quit when i install any MXP, do you know this bug??

  7. October 18th, 2008 | 6:48 am

    Abel : do you have extension manager 2 ?

  8. Daniel Rodriguez
    October 18th, 2008 | 8:10 am

    Ok, the only problem its, that I still cant find the CS4 download link in the adobe site.

  9. October 18th, 2008 | 10:01 am

    I’ve made an update and the current version should work regardless of the language:
    http://ajarproductions.com/blog/2008/10/16/flash-extension-export-as-motion-preset-preview/
    Thanks again, jeanphilippe! And thank you, Lee!

  10. October 18th, 2008 | 10:33 am

    Justin have update his extension..
    it’s running for french language now ;)
    thanks to him !

  11. Abel Hernandez
    October 21st, 2008 | 3:05 am

    Hi, Jean Philippe , yes i have extension manager 2, but when i try install the mxp , this quit.

  12. October 24th, 2008 | 7:43 am

    [...] > The Flash Blog » Automatic Motion Preset Previews [...]

  13. NeoEon
    May 8th, 2009 | 3:32 am

    Hi all! I have prloblems with this extension.
    Once Installed, I can’t see the command “Export as motion preset preview” in the commands window, running on flash CS4 and extension manager already up to date. Any hint?
    appriciate it..

Leave a reply