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



Thanks you Lee and Thanks to Ajar Productions
Why Adobe don’t have create it before ?
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.
but…
when i test on Mac, extension don’t work
an error in line 31
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);
}
>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
Hi, lee , excuse but i had some problems with it , extension manager quit when i install any MXP, do you know this bug??
Abel : do you have extension manager 2 ?
Ok, the only problem its, that I still cant find the CS4 download link in the adobe site.
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!
Justin have update his extension..
it’s running for french language now
thanks to him !
Hi, Jean Philippe , yes i have extension manager 2, but when i try install the mxp , this quit.
[...] > The Flash Blog » Automatic Motion Preset Previews [...]
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..