Copy path of a shape layer to the layer path again

I use connect traces on a shape layer to animate the "drawing" of the form. Then I have a still image (my hand) that I want to follow the application of the shape layer.

In AE, I this today by defining the paths of the toppings, then copy the path of the shape layer.  I go to the layer again, select the position attribute and paste. This deal is still keyframes layer which coincide with the shape animation.

I thought I could go something on the shape layer and then create keyframes on the layer again. However, I am not sure this makes sense?  Use valueAtTime() on the way to the shape layer?

Any ideas how I can replicate this workflow to ExtendScript?

Try this - it might get you up to get the path of the layer shape copied in the position property of the layer of the hand:


function deselectAll (theComp) {}

for (var i = 1; i)<= thecomp.numlayers;="">

theComp.layer (i) .selected = false;

}

var theProps = theComp.selectedProperties;

for (var i = 0; i)< theprops.length;="">

theProps [i] .selected = false;

}

}

var app.project.activeItem = myComp;

deselectAll (myComp);

var myPath = myComp.layer ("Shape Layer 1") .property ("ADBE vectors root Group").property("ADBE_Vector_Group").property ("ADBE vector Group").property("ADBE_Vector_Shape-Group").property ("ADBE vector form");

myPath.selected = true;

app.executeCommand (app.findMenuCommandId ("Copy"));

deselectAll (myComp);

myProp = myComp.layer("Hand").property ('Position');

myProp.selected = true;

app.executeCommand (app.findMenuCommandId ("Paste"));

Dan

Tags: After Effects

Similar Questions

  • Trace a path of shape rather than the ordinary path layer?

    Hello people! So I created a design on Photoshop CS4 using the pen tool. I used the shape layer option. As I used the pen tool and set the anchor and adjusted points all handles, my intuition tells me that I can get back my drawing of the regular shape to paths option layer because they are so similar, no? Once my shape layer becomes a regular path, I want to caress.

    I don't want to start my drawing everywhere, redo the anchor of all points and handles using the path option - I hope you understand what I mean!

    I appreciate any input you guys have to offer!

    Once you make the shape layer, go to the

    paths Panel and save the path, then make a new layer and stroke.

    Or you could shoot as many paths, no shape layer and then save your workpath

    go in the tracks Panel.

    MTSTUNER

  • effect of contour of the shape layer

    Hi, I'm applying an edge effect to a layer I imported from Illustrator.

    I created vector layer with the layer (so it appears as "outlines") and can apply STROKE if I go to 'Add' in the timeline, but not if I apply via 'generate' it does not appear and also impossible to apply effects. I can change the specifications, the width of the line IE, but nothing appears on the screen.

    Kind regards

    Suzie

    Doodle works and stroke on the footsteps of mask, not on the shape layer paths. If you want just for just these types of effects mask path, so you don't have to use "Create forms of vector layer" and instead of this just leave the layer being and copy - paste the path like I showed you before. Another way to do it, if you have already converted to shape and stay in shape too, is to copy the path of the path parameter of shape for the mask path setting (you can simply create a dummy mask so you where to copy)

    BTW shape layers have also a few very powerful path here operations: wiggle path can create the very nice and organic Scribble to your contours. but it is not the same as the Freehand drawing.

  • Transform a shape layer with several groups/paths in another?

    Hello

    I'm trying to turn the form A B-shaped into aftereffects.

    shapes copy.jpg

    Both are drawn in illustrator, and I imported into aftereffects and diverted path to forms.

    At the moment I do a key framing color and the path in the sticky on the form A and form B. From there I will meet with two questions.

    (1) for now I have to manually open each group, every path, every feature of color until I'm able to keyframe them. After that I have to paste the keyframe of the track and keyframe colors individually to the corresponding group. It's doable, but I have to turn the form in 10 more other variants. Just want to check is there a shorter way to the key all the way to access and color properties frame. And then copy all of the keyframes from one form to the other.

    Screen Shot 2016-04-21 at 2.33.34 PM.png

    (2) I noticed that not all the points on the path are created equal. I think that the "starting point" is noted with an extra box compared to other points.

    Screen Shot 2016-04-21 at 2.47.02 PM.pngScreen Shot 2016-04-21 at 2.47.14 PM.png

    As the "starting point" of a path is different from the rest, the transition has become weirdshape.gif.
    Can I check if someone knows how to change the "starting point" to another point on the same path? Or y at - it another way of fixing?

    Finally, if there is more easy morphing shapes to another, I'll be happy to listen. Thanks a lot ~

    I would do this kind of thing differently and 90% of the work in Illustrator.

    I would like to begin by drawing a path in Illustrator, to duplicate the path and to change the size and position and change the color of the outline of the color I wanted for the inside of the first form at the beginning of the animation.

    I use then the gradient tool to create a blend between the two forms specifying the number of steps, so my first form duly filled out for one frame looked like this:

    I would then do the same for my second form by using different colors, so I got this:

    With the two mixtures on you will see this:

    The upper mixing layer is where your animation will start and the bottom is where your animation should end.

    The next step is to select Merge layers and spread the mixture, if you find yourself with two groups:

    Here comes the fun part. Select groups, and then specify the number of steps you want as long as the number of images that you want in your animation. In this case, I want a second 1 transition and my comp is 29.97 FPS, so I selected 30.

    Now spread the mixture:

    We should end up with a group at layer 1 with 30 subgroups:

    Ungroup the higher group only then deselect all layers and select a single layer, then choose release to layers (sequence).

    now select all sub layers in the layer panel and drag it above layer 1. Layer 1 is now empty, so you can delete:

    Save the file HAVE and import into AE as a model with the size of the layer keeps selected:

    [Open the model, select all layers, move the a CTI frame to the right by pressing Ctrl/Cmnd + arrow to the right, then press Alt/Option +] to set the out point of all layers and then the wizard from keyframe to the layers in sequence without overlapping:

    I usually go to the point of exit of the background layer and press N to set the work area exit point, then cut the comp to work area.

    This model is then nested in your main comp and you can activate the time-remapping, so you can change the speed and use CC force motion blur to smooth animation.

    You will find it much easier to create the morph to a shape layer in Illustrator those in AE, you don't need to convert anything to forms and most of the work is done for you before you start. Total time to create this project with about 1/4 of the time it took to create this post.

  • Scribble on 3D shape layer effect redesigns and changes the thickness when you move the camera in the Z direction

    Hello community,

    I have created a shape layer in Adobe After Effects, marked as 3D layer and copy and paste a path of Adobe Illustrator as a mask. I applied
    a static scribble "on transparent" effect to this layer, which works very well.
    The problem I have is: when I'm using a camera, bound to a null object and move it in Z-direction (which resembles zoom), static squiggles
    are redrawn and the thickness of the line scibble is fit for the line seems to have a thickness irrespective of the position of the camera on
    the z axis.

    scribble_zoomin.png
    This is how the shape with scribble effect resembles the departure

    scribble_zoomout.png
    This is how the form looks like by moving the camera 'backwards' (-on the z axis). The lines are all too thick
    compared to the camera and therefore appear thicker compared to the size of the shape. Also drawing freehand inside the arrow is obviously
    redesigned, apparently maintain a constant spacing between the lines of the Freehand drawing.

    Is it possible to prevent the Doodle redesigned and lines and spaces to be put on the scale when the camera
    moves?

    I use after effects CS 6, 11.0.0.378, Windows 7 64 bit. Scribble effect is version 1.0

    I appreciate your help! Thank you.

    First of all, update! You are missing a lot of bug fixes. CS6 should be on version 11.0.4

    Second, you need to precompose your Doodle arrow so that all effects are occurring inside the precomp. And just to make the 3d precomp.

  • Beginner with the pen tool problem: not obvious on any shape layer

    I'm learning the pen tool. I made a line with the pen tool, but now I can't find out what layer it is on, and I can't caress as I wanted. All my layers are turned off and the form appears. However the research through the layers there is no vector layer that contains my line. In addition, I can't touch the line as the line options and filling are greyed out on my table of paths. I have attached a copy of Θcran to explain if all goes well I mean. I use CS2 on Windows 7.

    Untitled-3.jpg

    Your Layer palette capture you have no visible layer and targeted in order to trace the path would not be available and gray by Photoshop.  Target a layer visible and you should be able to stroke the path on this layer. Also, you should be able to add a shape layer by using this path of pen.

  • The shape layer size option missing.

    So I am working through a tutorial by Evan Abrams (great tutorial BTW) and came to this place where he made us change our shape layer size (Rectangle > content > Rectangle 1 > Rectangle path 1 > size [stopwatch]). The problem is mine does not flow like that. Mine looks like this: (Rectangle > content > Rectangle 1 > 1 path > [stopwatch] path). I have quite a size option for my rectangle and I'm not sure how to get one to appear. Under the mapped Rectangle 1, in addition to a layer of stopwatch for size, there Position and roundness. Only the mine's Path. Any help getting mine to look right would be greatly appreciated.  I have attached pictures to help you see what I mean. Thanks in advance! (I use the last version of the AE CC)

    His

    :Screen Shot 2015-04-28 at 2.16.20 PM.png

    Mine:

    Screen Shot 2015-04-28 at 2.15.20 PM.png

  • Copy a shape layer in another image?

    The only way I found to copy a shape from one image to the other layer is to have two footage in the editing pane and drag and drop the shape layer in the layers Panel on the other image.

    It is a rather painful process.  Is there another way to do it, I hope a keyboard combo?

    Ken

    One way is to use to duplicate the layer and in the destination menu choose the other open document.

    If your use of tab you should be able to drag the shape of the area of document using the tool go to the other tab and drop in the document.

  • Animation of the shape layer fill content

    I'm fairly new to After effects do not know too much of its objects and scripts.

    How can I access the content of a shape layer existing, edit and animate its fill color property?

    Thanks in advance

    It will depend on the type of shape, but for a rectangle, for example, set a keyframe at 3 seconds for the yellow color might look like this:

    var p = app.project.item (1).layer("Shape_Layer_1").property ('content') .property ("Rectangle 1").property("Contents").property ("Fill 1") .property ("Color");

    p.setValueAtTime(3,[1,1,0,1])

    My advice is to get a copy of the incredibly usefel script from Jeff Almasol here rd_GimmePropPath.jsx:

    http://www.redefinery.com/AE/view.php?item=rd_GimmePropPath

    You can use it to get the syntax appropriate for the property.

    Dan

  • The Position of the upper left corner of any shape layer

    Hi guys,.

    So for the last two days, I worked on a script that would allow me to centre X number of layers in the middle of the container model, as if the selected layers were just one layer. So my approach to achieve this goal is first to know the positions of the four corners of each layer. My code so far works perfectly with AVLayers and TextLayers, but it does not always with ShapeLayers. Here's the formula I use to calculate the position of the upper left corner of the shape layers:

    x = position [x] - [x] anchorPoint - (layerWidth / 2)

    y = position [y] - [y] anchorPoint - (layerHeight / 2)

    So the formula assumes that the anchor point is in the middle of the shape layer if the anchor point is [0, 0], and which seems incorrect.

    Untitled2.png

    And it's Layer Properties.

    Untitled.png

    So the question is, what is the way to calculate the position of the upper left corner of ANY shape layer?

    Thank you very much!

    It should work as long the layer was not filmed:

    var C = app.project.activeItem;

    var L is C.layer ("shape Layer 1");.

    var r = L.sourceRectAtTime (C.time, false);

    var s = L.property("Scale").value;

    var p = L.property("Position").value;

    var a = L.property("Anchor_Point").value;

    var ul = [p [0] + (r.left - a [0]) * s [0] / 100, p [1] + (r.top - a [1]) * s [1] / 100];

    Dan

  • How can the PSD CC 2015, I remove the ToolTip of information when you draw a shape layer?

    HI -.

    I don't know what his name but on win 10 / Photoshop CC 2015, whenever I have to draw a shape layer, I get a little window indicating the angle/length/width/etc, I draw.  While I don't know that it is a great tip for some people - for me it's annoying and it covers what I'm trying to see that I draw.

    On 10 of win / Photoshop CS5 - I do not have this information box.

    I looked in preferences under Interface and sliders, but couldn't find out how to turn this "feature".  (Probably because I don't know what his name.)

    How do I turn it off?  How can I disable contact information indicator bit appears so when I draw a shape layer?

    Thanks in advance for your comments-

    J2

    Try

    Photoshop > Preferences > tools > show Transformation values > never

    Concerning

    Pfaffenbichler

  • In Photoshop CC2015-how I automatically apply a style to the shape layer that I draw?

    HI -.

    I work in an office with a few different versions of Photoshop on Windows 10.

    On my CS5 PSD I can draw some shape layers, like arrows and have all the styles applied automatically style palette that I draw.

    But the fellow with PSD CC 2015 workers need to use 2 markets - draw shape layer and then select the style in the style palette.  None of the settings on the top of the screen seem to allow us to apply the style we attract.

    Is there a hidden area or a preference?

    The automatic application of a style has been removed from Photoshop?

    TIA your answer.

    J2

    This is not possible with the latest Photoshop shape tool. If you want that it is a characteristic shape tool like Photoshop old tool form the best you can do is submit an idea on the Adobe site comments but you hold no breath hoping Adobe will implement your idea.  If you want this feature you will now need to regress to an older version of Photoshop as CS2. This is the version of Photoshop, I used for my second screenshot, Photoshop community customer family

  • content of the copy to another document certain layer

    Hello people I did more code,

    This is a batch script

    I want to copy all content from one document to the other.

    My problem is to activate a certain layer

    Could someone help me?

    see code here

    [code]

    textLayer = app.activeDocument.layers.add ({name: "TT_IDML"});

    var docSource = app.activeDocument;

    var myFolder = Folder.selectDialog ("Select folder")

    If (myfolder. Length == 0)

    {

    Alert ("selected file No.")

    Exit (0)

    }

    myFiles = myFolder.getFiles ("*.idml") var

    If (myfiles. Length == 0)

    {

    Alert ("No. InDesign files in the folder")

    }

    for (i = 0; i < myFiles.length; i ++)

    {

    myFile = myFiles [i]

    Alert (MyFile)

    App.Open (MyFile)

    var docTarget = app.activeDocument;

    var paletteObjects = app.activeDocument.layers [0] .allPageItems;

    App.Select (paletteObjects);

    App.Copy ();

    app.activeDocument = docSource;

    App.documents [0].layers.itemByName ("TT_IDML"). Select;

    app.pasteInPlace)

    }

    [/ code]

    Thanks in advance

    There are also controls, if the original layers must be used, if something is pasted.

    See the InDesign preferences.

    app.clipboardPreferences.pasteRemembersLayers = false; //or true, set this as you need it.
    

    See also:

    Adobe InDesign CS6 (8,0) object model JS: ClipboardPreference

    Download the documentation for DOM here:

    InDesign JavaScript help

    Or search the latest versions here:

    InDesign ExtendScript API (10.0)

    InDesign ExtendScript API (11.0)

    Uwe

  • When I use my clipping on an image mask, fills the form I use the whole layer instead of just being a small shape Panel and then I put my picture on the shape layer, a clipping mask, but the form becomes clear with just a slight edge. The photo behind

    When I use my clipping on an image mask, fills the form I use the whole layer instead of just being a small shape Panel and then I put my picture on the shape layer, a clipping mask, but the form becomes clear with just a slight edge. The photo behind it does not move. I did this project of class before and it worked fine so I'm not sure if I have something started or... Any thoughts?

    I thought about it. That's all just stupid on my part and a bit of frustration because photoshop is my sworn enemy of then adobe added in. Thanks tho!

  • Widget degraded on the shape layer in the process of disappearance

    When you change a gradient on a shape layer, sometimes I see the on-screen gadget that allows me to draw the direction and length of the gradient directly the window of the model. But most of the time, it's invisible.


    What is the thing to see?

    The layer must be selected and the shape must also be selected and the tool Selection (v) must be active.

Maybe you are looking for