Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script to change the Line Join of shape layer line

  • Script to change the Line Join of shape layer line

    Posted by Kevin Snyder on September 22, 2020 at 6:06 pm

    I don’t know if this is even close, but I’m trying to change the Line Join of a shape layer to round. Here’s what I have so far.

    function line(){

    var myComp = app.project.activeItem;

    var myStroke = shapeGroup.property("Stroke");

    myStroke.property("Line Join").setValue([Round Join]);

    }

    line()

    Vincenzo Imbimbo replied 2 years, 2 months ago 3 Members · 2 Replies
  • 2 Replies
  • Matt Volp

    September 23, 2020 at 7:56 pm

    It’s a drop down menu, so you need to set the value to the index of the option you want.

    So something like this:

    app.project.item(1).layer("Shape Layer 1").property("Contents").property("Shape 1").property("Contents").property("Stroke 1").property("Line Join").setValue(2);
  • Vincenzo Imbimbo

    January 31, 2022 at 4:12 pm

    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?

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