mix (add) position of 2 layers in a single information - script/expression?

is there a script or an expression, or a way to merge 2 layers in a third layer that will add the two values together position but in a way that the position remains unchanged?

Yes - as if I copy pasted together in a new layer. I had a lot a lot it is very messy.

TrackerViz only get me halfway is here and it is not good. It combines the layers and compensates for the first query layers smooth by information from the second and I just want to add.

I got a layer ranging from 5.5 (x, y) at 00:00 at 10.10(x,y) at 00:02

another layer ranging from 15.5(x,y) to 03:00 to 25.5 (x, y) to 05:00

and I want to add the 2 together in a new layer or even one of these layers

5.5 to 10.10 to 15,5 to 25,5 00:00 - 05:00

example here:

https://docs.Google.com/UC?ID=0B5wyUt17-tu2VDVBLTRtOXBMT0E

Thanks Szalam. I was an average with TrackerViz. I wanted both added as a trail of keyframes.

Here is a Gif for you.

Anyway, the amazing Dan Ebberts nailed. the full thread is here:

mix (add) position of 2 layers in a single information - script/expression: Adobe after effects Expressions

Tags: After Effects

Similar Questions

  • Photoshop Mix supports more than two layers

    Often when I composite that I find myself with three or more layers, as I often separate a base background and foreground elements image and add another cut in the ground, middle between. Are there plans to Mix support more than two layers, as I am currently limited to two making it useless for anything whether it is more cutting.

    Here are some features, I think that this application should be useful;

    • Add more changes to the version of the Tablet options to the phone version, they are useful and you give no reason do not include them.
    • As I asked here can we have more than two layers in favor.
    • Any chance of support for layer masks.
    • Can we have support for color curve adjustments.
    • Can I have more means to add and remove the smart tools from a selection of cutting is great, but sometimes I have a little precise painting inside and out around the edges.
    • Can we have the advantage of refine also included.

    OK so this all sounds rather negative but there are something does a very good Mix, that's why I'm so frustrated by his lack of other functions;

    • The intelligent cutting tool is the fastest way to get a reasonable cut I've never seen and is great, but as I say, I would like to be able to narrow down the selection by other means.
    • Moving and positioning of one single layer on the other is quick and simple and intuitive unlike photoshop Touch where the rotation of the image at the top has been slow and clumsy.

    This app could be great but at the moment it feels fully functional for work that it is apparently designed to do. Adobe do have plans to add features I ask here? Or other features, and in what time frame?

    Hello

    Your suggestions are really valuable for us and most of them are already on our roadmap.

    To answer your questions:

    1 Mix supports up to 5 layers since version 2.0 on iOS devices.

    2 flip layer is also supported for 2.0.

  • move all the layers into a single layer

    Hello

    I am new to the script and I need to make a script that the passage of all the layers into one layer (in Illustrator I press CTRL + A and then CTRL + G in layers and works) but I need in the script

    Please could someone help me?

    Thank you!

    I found the solution

    main() {} function

    If (app.documents.length == 0) {return ;}

    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

    var doc = app.activeDocument;

    var mast = doc.layers.add ();

    Mast.Name = "original";

    var group = mast.groupItems.add ();

    var pageIt = mast.pageItems.add ();

    While (doc.layers.length > 1)

    {

    While (doc.layers [doc.layers.length - 1].pageItems.length)

    doc. Layers [doc.layers.Length - 1] .pageItems [doc.layers [doc.layers.length - 1].pageItems.length - 1] .move (grup, ElementPlacement.PLACEATBEGINNING);

    doc. Layers [doc.layers.Length - 1] .remove ();

    }

    }

  • I would like to add the auto-fill feature and enter the information. How can I do

    I would like to add the auto-fill feature and enter the information. How can I do

    AutoFill Forms extension:
    https://addons.Mozilla.org/en-us/Firefox/addon/4775

  • TIFF of Import Options - flatten the layers into a single Image

    Hi all

    Running a script to open the files and convert them into another type. When it comes to a TIFF file type, called 'TIFF Import Options' dialog box opens. This window has a column of Options containing two pieces of music radio to "Convert layers to objects" and "flatten into a single Image. How to open the file with the whole "flatten the layers into a single image?

    Thank you

    OpenOptionsPhotoshop.preserveLayers = true;

  • change the position of several layers

    Hello

    I have tried many and find many things by google, but I can't find a working solution.

    I have about 60 layers in my Composition. They're all the same position at the moment. The idea is to browse through the Articles and change the y-position with an offset value.

    What I've learned so far is that there is a layer.property("Transform").property ('Position'). First I thought that it is a table like [x, y, z], but this seems to be only one... property.

    Now I can check if my layers in the 'Position' property...... but I already knew. I found no way to set or even get all values.

    I know how to set the position when I create a new layer, but this seems to be something different.

    Is there a possibility to change the Position of a layer existing script?

    Best regards

    G

    For the position or any other property in the layer, you must use the method .setValue(theNewValue).

    If the property contains keyframes, or if you want to add a keyframe, it will throw an error, however, to check if the property already has keys, in this case, you can use the method .setValueAtTime(theTime, theNewValue).

    Example:

    Layer.Property ("Transform"). Property ('position'). SetValue ([x, y, z]);

    Layer.Property("Transform") .property ("Position") .setValueAtTime (0, [x, y, z]);

    Check the after effects Scripting guide (pdf) for more information on this.

    Xavier

  • To rasterize a layer using Javascript and maintain his position by other layers.

    Try to use javascript to rasterize the entire contents of a certain layer by name.

    It must maintain its position.

    I cobbled together sort of a script, but he still goes art swept to the top layer.

    Ex, up and down I have 4, RasterizeMe, Layer 2, layer 1 layer.

    The content of swept end on layer 4

    Any help would be apprecieated, or if theres a better way to do it.

    //  Rasterize Layer by name
        if ( app.documents.length > 0 ) {
            doc = app.activeDocument;
            if(!doc.saved){
                Window.alert("This script needs to modify your document. Please save it before running this script.");
            }else{
                createRasterLayer(doc);
            }
        }else{
            Window.alert("You must open at least one document.");
        }
    
    function createRasterLayer(doc){
        var totalLayers = doc.layers.length;  //get the total number of layers in the active document
        for ( var i = 0 ; i < totalLayers ; i++){  //looping through layers             
            var currentLayer = doc.layers[i];
            var tempItem;
            if(currentLayer.visible == false) continue;   //We don't want to deal with hidden layers
            currentLayer.locked = false;                       //Unlock the layer if needed
            var layerName = new String( currentLayer.name );
            if ( layerName.indexOf("RasterizeMe") == 0 ) {
                currentLayer.hasSelectedArtwork = true;   //Select ALL in the layer
                if(doc.visibleBounds[2] == 0) continue;   // ignore empty layers
                var newoptions = new RasterizeOptions;  
                newoptions.resolution = 350;
                if ( doc.selection.length > 0 ) {
                    newGroup = app.activeDocument.groupItems.add();
                    for ( z = 0; z < doc.selection.length; z++ ) {
                        doc.selection[z].move( newGroup, ElementPlacement.INSIDE);
                       }
                    doc.rasterize (newGroup, newGroup.visibleBounds, newoptions);
                }
            }
        }
    }
    

    you add the group to the document, it will be the subject most on the top layer of most

    newGroup = app.activeDocument.groupItems.add();
    

    This allows to add the group to the current layer

    newGroup = currentLayer.groupItems.add();
    

    or if theres a better way to do it.

    I'd do it

    -loop through all layers,

    -hide everything except the one you want to rasterize,

    -The document raster

    -display layers

  • Add layer with several layers

    The biggest waste of time for me, when working with layers is when I want to add a new layer that must appear in all compositions of layers. I have to manually go through each layer comp and enable the visibility of the newly created layer, because it is hidden by default. Are there are 20 layers then this really takes a ton of time.

    Is it possible, when you add a new layer in a photoshop document, to have it by default visible in a set of selected layers?

    Thanks for the reply but this isn't what I was asking... My question was about the creation of new layers - and making them appear automatically in several compositions.

    In any case, I think that I figured it me:

    1. first, multi - select layers to who I want the new layer is visible (using shift + click or order in the layer comps palette)

    2. all the layers can create will be visible by default in the selected layers.

  • How do you add / do properties to layers/timeline without any shortcuts?

    How can you add scale, position etc. to a layer in the scenario without using the shortcut keys?

    I used the tools to scale and whatnot and know that you can use shortcuts but there is a menu where you can add these properties and make them appear in the timeline panel?

    There is no menu to show or hide the properties in the timeline panel. You can click the triangles next to property groups to expand and collapse them, and you can use the other tips in the page I mentioned for the display and hiding of the different sets of properties. For a list of shortcuts, go here.

    In regards to 't' is not not intuitive: 'o' was taken by the shortcut to go to the exit point. 'T' is short for 'transparency '. Some people remember jokingly as "picao-T".

  • How can I add (gather) two different images into a single image?

    Well, I'm creating a HTML element / CSS Web site. I have two logos that I need to add to the header areas of the Web page. I thought that creating a chart would contribute to this question. I want to be able to add two different images (logos) into a finished product. However, I am having some difficult understand how to combine two different images on the same workspace (tab).  The images would be out there with text in the middle of the space. I would use the 2015 Photoshop, does anyone have and ideas?

    If it was me I open one of the images then go to Image--> the canvas size.  Then expand TI (relative check) of several (12) inches in width and height (choose to anchor the part you want to stay where he is.)

    Open another image and drag it in the first.  Or select all and then copy / paste If you wish, you can you should now have two images in the same file/tab.  Everyone should be on different layers.  Use the move tool to position them how you want.

    Finally go to Image > Trim and leave the default values.  He must cut off all the excess.  Save in any format you want.

    I hope this helps.

  • Select several layers and harmonizing via a script

    snip_20160114102022.png

    I have the following configuration layer and here is what I want to do via a script

    (1) select Layer 1 and layer 0

    (2) align the 0 to the left of the canvas layer

    (3) select Layer 1 copy of layer 0 and

    (4) align the layer 0 copy to the right of the canvas

    Is it still possible via the script? Changing the size of the documents

    If you look at the script that I posted it doesn't select it all, and the two alignment measures to align the active layer.  All the alignment of four Charter id are included in the code. all you need to do is target the layer that you want to align. It should look like this

    var savedActiveLayer = app.activeDocument.activeLayer;  Save the current layer of adtive

    app.activeDocument.selection.selectAll ();                          Select all

    Left ('AdLf'); Right ('AdRg'); Top ('AdTp'); Bottom ('AdBt'); Center Horizontal ('AdCH'); Center Vertical ('AdCV');

    Add code to the target 0 layer / / activeDocument.activeLayer = layers 0

    align ("AdLf");                                                                    Align to selection on the left side

    Add code to the target layer 0 copy / / activeDocument.activeLayer = copy of layers 0

    align ("AdRg");                                                                  Align to selection on the right side

    app.activeDocument.selection.deselect ();                           Deselect the option

    app.activeDocument.activeLayer = savedActiveLayer;        restore the current layer

    //////////////////////////////////////////////////

    align (method) {} function

    var / / desc = new ActionDescriptor();

    Var ref = new ActionReference();

    ref.putEnumerated (charIDToTypeID ("Lyr"), charIDToTypeID ('Ordn'), charIDToTypeID ("Trgt'));

    desc.putReference (charIDToTypeID ("null"), ref);

    desc.putEnumerated (charIDToTypeID ('Usng"), charIDToTypeID ("ADSt"), charIDToTypeID (method));

    executeAction (charIDToTypeID ('Algn'), desc, DialogModes.NO);

    };

  • InDesign CS5 | Create layers and automatically distribute. [script]

    Hi guys,.

    is there some script for Indesign CS5, which create layers automatically a nd distribute text, images and objects their?

    Ex: I have a layer with a lot of pictures and I want to distribute to layers another automatically.

    Best regards

    JNSaraiva

    Hi JNSaraiva

    At a glance of your first bid looked like you have three specific objects (image, text, otherObjects) and you want to move all the images a specific layer images and text on another layer objects and rest to another specific layer. If what you wanted then my first code complete final will fill it but in your subsequent post it sounds like you want to move all the objects in your choice on different layers, if that's what you want then try my code below:

    var mySels = app.selection.length;
    if (mySels == 0) {
        alert("Select the object and Run the script");
         exit(0)
      }
    else{
    while(mySels--){
              var objLayer=app.activeDocument.layers.add();
              app.selection[mySels].itemLayer = objLayer;
         }
    }
    

    Mac

  • Is it possible to get my (position) keyframes to a track movement of action script?

    I did follow up of after-effects of movement and I'm looking for the posibility copy movement and convert them into action script, reuse it in flex.

    is it posible?

    Copy data to the Clipboard and paste it into a text editor or something. It is well formatted. Must be easy to scan through Flex, if you need to be with a manual cleaning. Also, you can try to copy & paste the news tracker on the position of the data on the dummy layers (they must be actual film elements, for example a small PNG placeholder), then use export XFL to get data from Flash / Flex.

    Mylenium

  • How can I add a keyboard shortcut to insert a signature in Outlook Express?

    ACCESS KEY QUICK TO ADD A SIGNATURE ALREADY WRITTEN IN E-MAIL WHEN YOU WORK WITH OUTLOOK EXPRESS

    ACCESS KEY QUICK TO ADD A SIGNATURE ALREADY WRITTEN IN E-MAIL WHEN YOU WORK WITH OUTLOOK EXPRESS

    Hello

    You can configure Outlook Express to add a signature automatically.

    How to create a Signature in Outlook Express
    http://email.about.com/od/outlookexpresstips/SS/w112703.htm

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • PROTECT THE FILE MS WORD PASSWORDS FOR OFFICE HOW DO I ADD ADDITIONAL OR ENCRYPTION PASSWORD TO PROTECT THE INFORMATION FOLDER? __

    CANNOT FOLLOW INSTRUCTIONS ON HOW TO ADD FOLDER OR THE USER SECURITY

    CANNOT FOLLOW INSTRUCTIONS ON HOW TO ADD FOLDER OR THE USER SECURITY

    I don't know what you mean by 'add an additional password'.

    Here's what we can do to put a password on Microsoft word documents...

    Open your document in question to MS Office Word > click the Office logo > Save As > downstairs, findTools > next to tools, there is a pointer > until it clicks > click General Options > on password to open, enter your password > OK > save

    Hope it's what you want. For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

Maybe you are looking for