Forum Replies Created

Page 3 of 3
  • Vincenzo Imbimbo

    May 25, 2022 at 7:28 pm in reply to: Convert 40 Compositions into 40 AE Projects

    This was exactly what i needed, thank you so much Dan!!

  • Thank you so much Dan! This is exactly what i needed, you are such a pro!

  • I make it work but only for 1 shape element of each shape layer, i want it to work in any shape layer no matter how much elements it has inside the Groups.

    This is what it works:

    var project = app.project;

    var comp = project.activeItem;

    app.beginUndoGroup("Process");

    var myLayers = comp.selectedLayers;

    for (var i = 0; i < myLayers.length; i++){

    var myContents = myLayers[i].property("ADBE Root Vectors Group").property("ADBE Vector Group").property("ADBE Vectors Group").property("ADBE Vector Graphic - Stroke").property("ADBE Vector Stroke Line Cap").setValue(2);

    }

    app.endUndoGroup();

    And this is what i’m doing trying to work through all the properties (i want it to work in any scenario):

    var project = app.project;

    var comp = project.activeItem;

    app.beginUndoGroup("Process");

    var myLayers = comp.selectedLayers;

    for (var i = 0; i < myLayers.length; i++){

    var myContents = myLayers[i].property("ADBE Root Vectors Group");

    for (var j = 1; j <= myContents.numProperties; j++){

    myContents.property(j).property("ADBE Vector Group").property("ADBE Vectors Group").property("ADBE Vector Graphic - Stroke").property("ADBE Vector Stroke Line Cap").setValue(2);

    }

    }

    app.endUndoGroup();

  • Vincenzo Imbimbo

    January 31, 2022 at 4:12 pm in reply to: Script to change the Line Join of shape layer line

    Hi, you know if there’s any way of doing this for ALL the shape layers that you have selected? Some shape layers may have more than 1 object inside, so what should i do?

  • Hi Dan! i finally achieved what i was looking for.

    This was the modification that i did:

    var myCompTime = 0;

    selLayers[i].startTime = (selLayers[i].inPoint = selLayers[i].startTime) + myCompTime + i * offset;

    You know how can i do to sequence layers AND keyframes? I mean, right know is working fine with layers, but i want it to work also with keyframes, depending on what you have selected. Any thoughts?

    This is the code:

    var comp = app.project.activeItem;

    var err = this.selErr;

    if (this.checkActiveItem(comp)) throw(err);

    var selLayers = comp.selectedLayers.reverse();

    if (selLayers.length < 1) throw(err);

    var offset = parseFloat(pal.gr.gr2.framesEt.text) * comp.frameDuration;

    app.beginUndoGroup(this.scriptTitle);

    var tStart = selLayers[0].inPoint;

    for (var i = 0; i < selLayers.length; i++)

    {


    var myCompTime = 0;

    selLayers[i].startTime = (selLayers[i].inPoint = selLayers[i].startTime) + myCompTime + i * offset;

    }

    app.endUndoGroup();

  • Vincenzo Imbimbo

    December 30, 2021 at 4:58 pm in reply to: Script to Sequence Layers (What i’m doing wrong?)

    pt_ShiftLayers by Paul Tuersley, what i mean is that the thing that i want to achieve has been already achieved by other scripts, but i can’t figure it out “how”, i need to know the “how” because i want to use this function in a custom script for the Motion Designers community. I was explaining the “why” i don’t use this script by Paul Tuersley, it is because i don’t really need this tool, i just want to learn how it was done to be incorporated in another script.

  • Vincenzo Imbimbo

    December 30, 2021 at 2:18 pm in reply to: Script to Sequence Layers (What i’m doing wrong?)

    It was working before, when i had this code:

    selLayers[i].startTime = (selLayers[i].inPoint = selLayers[i].startTime) + i * offset;

    But now that i have changed the “=” to “-=” it becomes static, i mean, if i click on the “Execute button” of the script it works but that’s it, it doesn’t add a new value to the already sequenced layers, because there is no new value that can be added, it works just fine but only once, if i want to add more frames to that sequence i need to type a new number and click again on the execute button, and i think that this workflow is a little time consuming (i mean, having to type a new number every time i want to add more frames to the sequence instead of sequencing that number of frames that i’ve already wrote every time i click the button). I now that it’s possible to achieve what i’m asking for because i have an script that already does that, but is an jsxbin file so i can’t look at the code, i feel like i’m getting closer but i don’t know what should i do.

    Thanks again for all the help Dan!

    Maybe you will tell me: why don’t you use that script that you already have? And that’s because this “Sequence Layers” is just one of the functions than i’m trying to incorporate to a very complete and useful script for all my subscribers at Eje in Motion.

    I’m really new to writing scripts but i know that i will achieve it, and i’m having really fun, it feels like magic when you click that “play” button and see the Script doing exactly what you want it to do.

  • Vincenzo Imbimbo

    December 30, 2021 at 11:44 am in reply to: Script to Sequence Layers (What i’m doing wrong?)

    Thank you Dan!! Now it’s working perfectly, but there’s another thing that i want to add, it is possible to keep adding the sequence to the already sequenced layers? Example: i sequence the layers by 5 frames, if i click it again now they’ll be sequenced by 10 frames, and if i click again they’ll be sequenced by 15 frames, and so on… is it possible?

  • Vincenzo Imbimbo

    December 30, 2021 at 9:27 am in reply to: Script to Sequence Layers (What i’m doing wrong?)

    It worked, but now everytime they get sequenced they begin in the start of the composition instead of the inPoint of the Layers, what can i do?

  • Vincenzo Imbimbo

    December 29, 2021 at 9:22 am in reply to: New AE Expressions Library is Open!

    Thank you for this amazing tool! This will be one of my references to create new scripts, cheers!

    Vincenzo Imbimbo
    Creator of EJE in Motion

Page 3 of 3

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy