Is it possible to save the animation preset by script?

Hello

I wrote a script called memory, which save any layer of same model of layers for the generation later. https://github.com/Smallpath/memory

A few days ago, I filled in the preview function and was ready to release it with tag v3.0. However, script can not get or set the value of special plugins like curve, particular and puppets, nor what to do my script Memory.I know these plugins can be saved as animation preset by click in Ae, but who needs the user to click, select the folder, enter a name for the preset and finally click OK, which isn't me.

I really need to improve my script. So I wonder if there is a way to save the animation preset by script. Perhaps it may be a hidden such as CompItem.saveFrameToPng.Thanks, for any help method

I work on the same idea and could not find all hidden for creatine presets modes.

So I came up with this code:

function newPreset(){

    var activeComp = app.project.activeItem;
    if(activeComp == null){ alert("Please, open composition."); return false;   }
    if(activeComp instanceof CompItem){ }else{   alert("Please, open composition."); return false;  } 

    var selectedLayers = activeComp.selectedLayers;
    if(selectedLayers.length == 0){   alert("Please, select any layer."); return false;    } 

    selectedLayers[0].effect(1).selected = true;
    app.executeCommand(23); // Select All
    try{ selectedLayers[0].layerStyle.selected = true;  }catch(err){}

    app.executeCommand(3075);   // Save Animation Preset   

};

Hope that will help you somehow.

Tags: After Effects

Similar Questions

  • is it possible to save the Office XP for multiple monitors and restore after using the laptop in mobile mode?

    Is it possible to save the Office XP for multiple monitors and restore after using the laptop in mobile mode?

    Hi Kenelms,

    You can follow this link & check if it helps.

    HOW to: Set up hardware profiles for laptop computers in Windows XP

    Hope the helps of information.

    Please post back and we do know.

  • Is it possible to save the shapes drawn with the pen tool?

    Is it possible to save the shapes drawn with the pen for reminder tool later?

    As for example save selections in Photoshop?

    I use Indesign CS2

    Library to use for this. Or extracts.

    Reuse of graphics and text in InDesign

  • Problems with Adobe Flash Professional CC (CS6 too) to save the animated .gif file or .swf file perfect

    Hello

    I have a problem with Adobe Flash Professional CC and CS6 to save the animated .gif file. This is a very simple work with logo. But I can't save a perfect swf or gif file, and that's bad news for me. Logo .swf file record with bugs. Bugs just see then file to insert in the page of freeshop. This is just example of test page, it allow you to see the bugs of logo - http://tagraseshop.graphicsrim.eu . Here is the actual page, but it's not my, freeshop with old logo is and I corect it - http://www.tagras.lt

    .Gif absoluted anime file not saved in Flash CC. Just the gif image. And why? My Windows 8.1 operating system.  In fact, I try to register on Adobe Flash Professional CS6. It is not save too...

    GIF "animation"- https://mega.co.nz/#! D8pEVaRR! LK4 ahNfhg-nI4T-0vROV9xCa1XfXz4br1X9lpQfUR0nQNT
    SWF with bugs- https://mega.co.nz/#! jo5lSRyS! 1x6GjWqYsf7n4KknUs6eF8EqZXEv9e8RsSpGd8h5 jGQ

    FLA -flash document- https://mega.co.nz/#! C94nCDSS! 7yKF9FIBvYtVC9r8kYiJ0l0xzUm_R2HwgoXks6iM zUA

    Perfect animation speed is here- http://e-shoptagras.graphicsrim.EU

    Who can help me?

    Any ideas?

    Thanks for your help in advance!

    But when I download the SWF logo in the page http://www.tagras.lt, it is always visible with bug, flash on it. I don't create it like this, why it is done that way? (Why SWF logo flashing/load?) ( http://www.tagras.lt look at the main title on the left).

    Thank you very much!

  • possible to save the 2 Iphones on one computer

    is it possible to save 2, I phones on the same computer? have 2 old desktop Mac and a laptop to update who will accept only the I phone for back-up... Jim

    Yes you can.

    Make sure that each iPhone has a unique name.

    Settings > general > topic > name > here

  • Is it possible to see the animation of the flow of electrons?

    I am a beginner and e-learning on my own.  I have Multisim v13 and I was wondering if it is possible to display the flow of electrons led thanks to a circuit?

    Something like this-> http://www.falstad.com/circuit/

    Thank you!

    Multisim is not a way to animate or electron current flow in the circuit. You can use sensors in different sections of your system to see the current within a particular section while the circuit is running, but there is no real way to see this animation.

  • Application of the animation preset from Adobe Bridge?

    I've not used this feature in a long time, so I don't know if there is a configuration problem on my PC or something I am doing wrong. In the menu drop-down panel effects and settings preset, select 'displays 'Browse the Presets' Adobe Bridge. If I double click on a preset, say the bottom of the appearance, AE shows:

    After effects error: could not import the file "Apparition.ffx": type of file not supported or extension. (0::1)

    However, if I try the same thing using the Animation menu > apply Animation Preset - > open->... Apparition.FFX, it works fine.

    Version of the AE: 13.1.1.3

    Version of bridge: 6.1.0.116 x 64

    Windows 8.1

    This is fixed in the 2014.2 effects after update (13.2), which is now available.

    Details here: http://adobe.ly/1IVopxh

  • Is it possible to save the installation & pre scan?

    Hello

    I am new to Thinapp & need to know that, is it possible to save save pre scan & installation post scan & build in a day later?

    Thank you!

    Hello

    You can probably create a virtual machine after a pre scan and installation, snapshot if you use Workstation or ESX (do not close the window of process configuration Capture ThinApp). And then you can go back to the snapshot and you'll get the Setup Capture window open to job analysis and build.

    Thank you

    -Pankaj

  • Is it possible to save the document as the channel... mask selection?

    Hello world:

    Is it possible to script.

    1. save the document as the channel... mask selection?

    2. How do we get selection of layermask... ?

    Thank you is advanced.

    -yajiv

    Ad 1)

    If you mean a channel:

    app.activeDocument.selection.store (app.activeDocument.channels.add ())

    Ad 2)

    If the layer is selected it should load the layer as a selection mask:

    // =======================================================

    var idsetd = charIDToTypeID ("setd");

    var desc12 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref8 = new ActionReference();

    var idChnl = charIDToTypeID ('channel');

    var idfsel = charIDToTypeID ("FSC");

    Ref8.putProperty (idChnl, idfsel);

    desc12.putReference (idnull, ref8);

    idT var = charIDToTypeID ("T");

    var ref9 = new ActionReference();

    var idChnl = charIDToTypeID ('channel');

    var idChnl = charIDToTypeID ('channel');

    var idMsk = charIDToTypeID ("Msk");

    Ref9.putEnumerated (idChnl, idChnl, idMsk);

    desc12.putReference (idT, ref9);

    executeAction (idsetd, desc12, DialogModes.NO);

  • Is it possible to save the screen to a file image using AS3 CS5.5?

    Hello

    I need to save the content of my screen to a picture in the camera, anyone know if it's possible?

    Thank you

    Here is the code

      var cameraRoll:CameraRoll = new CameraRoll();      var bitmapData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);     bitmapData.draw(stage);     cameraRoll.addBitmapData(bitmapData); 
    
  • Is it possible to save the adjusted image virtual copy and throw away the original?

    I made a virtual copy of an image which I then adjusted in LR to the way I want to keep it. Now, I wonder if there is a way to easily apply these adjustments to the original, so I can then throw the virtual copy, or do I save the virtual copy and delete the original? I have just need two images, one that is not a custodian. I don't want to delete the original if the virtual copy depends on its existence.

    I want to keep the images up to that I want and I'm working to erase those images that I never use. According to what is the best way to handle the above situation will allow me to make a few essential to my catalog household.

    TIA,

    Ken

    You must copy the changes to the original, and then destroy the virtual copy. The other way ' round will not work.

    In the grid, do a right click on the virtual tour you are interested in. In submenus 'Develop settings' and "Metadata Presets", you can choose "copy...". ». What to do in each of them, right click on the original and make the two corresponding blocks.

    HAL

    Edit: darn... Ian got there faster and with a better solution.

  • Is it possible to save the current tabs and groups so that they can be recharged at any time?

    My Firefox crashes sometimes, and when I start it up again, my groups and tabs that I had are lost, so I need to recreate my history window. Is there a way I can save the groups that I have with the tabs on the inside so that I can retrieve them at a later date.
    "I say that Firefox does not save the whenever I close the browser, so I'm güssing there a file somewhere that contains this information, if I know how is called this file I could save it on my regular schedule and retrieve them if I had to, of course the best solution would be to have a ' save the groups ' & 'Support groups' in the menu.

    Thanks in advance
    DayoJ

    (PIN) App tabs and groups of tabs (Panorama) are stored in session data in the sessionstore.js file in the Firefox profile folder.

    You can use this button to go to the Firefox profile folder currently in use:

  • is it possible to save the clip markers in the file of prelude

    I want to be able to pass on the work I did as a prelude to someone else, especially if there is a lot of material to open a session

    Hi dudeclaudeapollon,

    You have the following:

    1. Select the subitems in the project Panel and go to--> export--> media file

    2. or you can add all the necessary for a scripted sub-elements. and go to file--> save Ruffcut ACE. Ruffcut will be exported. This scripted then be ingested as normal media files and all subelements attached to it would be available in the project Panel.

    Thank you

    MILIN

  • Is it possible to stop the animation playing to a certain image of key?

    I have an animation that I'm controlling (go) in VB. I want to stop the animation at each keyframe, preferably to after effects and not VB.


    Sam

    Uh, why would hack you for the player? He shouts "Let me Flash, please" in every sense. Export a PNG of EI sequence, import into Flash, do al lthe script in the SWF file (including the provision for external triggers). You can't do anything in AE. Expressions are simply an internal way to animation and do not incorporate into the SWF file or any other format.

    Mylenium

  • Since the update for Firefox 4, I am no longer offers the possibility to save the tabs when closing making it much faster to access these sites when starting the next day. Why this possibility has been removed? It's a favorite feature.

    Since the update for Firefox 4, I offer more the ability to save tabs on shutdown - makes more rapid access to these sites when commissioning the next day. Why this possibility has been removed? It was a feature favorite and saved a lot of time.

    Firefox 4 records the previous session.

    You can use "Firefox > history > restore previous Session" for the previous session.

    There is also a button 'Restore previous Session' on the default on: Home home page.

    Another possibility is to use:

    • Tools > Options > general > startup: "When Firefox starts": "show my windows and tabs from last time '.

    You can set the preferences of warning on the topic: config page true via the context menu or toggle the value with a double click of the left.

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

Maybe you are looking for

  • Twinkling of shadow of notification

    Hello So I have an iPhone 6 s more ios10 running. Now, sometimes when I pull down the shade of the notification, I get a flicker problem.But this does not always happen or won't display does not respond. And all functions work fine. Any suggestions w

  • Silverlight 5.1.40728.0 reported by Firefox as vulnerable 41.0.1 / needs updated. From where? Why?

    Silverlight 5.1.40728.0 reported by 41.0.1 as vulnerable Firefox / "update now" when I check my plug-ins are up-to-date. By clicking on the button takes me to the MS Silverlight download site, but all I get from following instructions is same version

  • Drivers HP xw6200 workstation.

    Hello! I have a big problem of rly. I need drivers for windows 7 x 64 to my computer. 2 days, I try to find these drivers with no result... Speakers included in workstation works fine but the back panel "is not the connected device. Help me ASAP plea

  • Veristand reflective memory installation

    Hello I have a sytem with 2 chassis SMU-1075 each it's own controller SMU-8133 along with several analog and digital i/o modules. There is also a reflective memory network adapters installed using 2 GE Fanuc pmc-5565PIORC memory - one in each frame.

  • Compaq CQ61: The CPU usage

    More and more, I find that my Compaq CQ61 is very busy, with the fan and the hot base, when I want to use it. How to find which program is running to cause this problem? while I can disable it somehow and tell me what the computer is doing rather tha