Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects AE Script adding a basic shape to an existing shape layer issue

  • AE Script adding a basic shape to an existing shape layer issue

    Posted by Anthony Honciano on December 7, 2021 at 12:40 am

    Hi All.

    I’m making this script where it takes an existing custom shape layer, add’s a poly star to it with stroke and fill. It works, but it adds the poly star somewhere off to the far right, instead of on top (same position) as the existing custom shape (see screenshshot, the T-Rex is the existing shape, and the polystar shape was added, but to the right and off canvas).

    I’ve uploaded the text file if you wish to view, but I’m just using simple properties/addproperty with match names. No special conditions, for loops, or specifying the x/y values and moving this around. Just using the default coordinates.

    I tried with simple squares and stuff too, and they never get centered, even when I check the anchor points. I can’t seem to figure out the phenomenon that’s causing this. I’ve attached my script as txt if you wish to check out the code.

    Thank you

    Anthony Honciano replied 4 years, 5 months ago 1 Member · 1 Reply
  • 1 Reply
  • Anthony Honciano

    December 7, 2021 at 1:04 am

    Okay, so I’m figuring out that vector paths dont’ have relative coordinates to the comp, but they do have cooridnate though. So unless there’s a method to create a shape over the existing center shape path, I was thinking maybe have all the groups into one parent group and the coordinates of that and move the new shape there? Is that possible? If so, how do i move all the shape groups into a new parent group?

    Sorry, my head is spinning on this, cause i can’t figure it out, and I’ve been googling keywords everywhere for the last hour.

    My other guess is to get the coordinates of each group and just MATH the center area?

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