Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Batch centering anchor point using alpha… is it possible?

  • Batch centering anchor point using alpha… is it possible?

    Posted by Caleb Mclaughlin on May 14, 2015 at 2:14 pm

    Hey folks. I’m looking for a way to auto-center a layer’s anchor point using the layer’s alpha channel and not the layer dimensions. Here’s the deal:

    I have a polygon portrait made up of fourhundredsomething layers (see below). These are imported from a Photoshop document, thus each layer has the same dimensions and anchor point, regardless of where the triangle is. I’d like to find a way to move each layer’s anchor point to the center of the triangle.

    I tried a script on AE Scripts, but it works based on the layer dimensions. Can anybody suggest a way to move each anchor point to the triangle center without clicking and dragging each one?

    —————————–

    Caleb

    Caleb Mclaughlin replied 10 years, 10 months ago 3 Members · 5 Replies
  • 5 Replies
  • Todd Kopriva

    May 14, 2015 at 9:23 pm

    Layer > Transform > Center Anchor Point In Layer Content

    This command works on multiple selected layers.

    ———————————————————————————————————
    Todd Kopriva, Adobe Systems Incorporated
    After Effects product manager and curmudgeon
    After Effects team blog
    ———————————————————————————————————

  • Caleb Mclaughlin

    May 15, 2015 at 3:10 pm

    Hi Todd. Thanks for the reply.

    Unfortunately, this only seems to work on Shape layers. The layers I’m working with are imported from a single photoshop document, and all have the same dimensions (the transparency extends the same amount on each layer). If I move the anchor points off center, then use the transform command mentioned above, it centers the anchor points back to where they were before, in the center of the layer but not in the center of the triangles.

    —————————–

    Caleb

  • Walter Soyka

    May 16, 2015 at 1:38 am

    Reimport your Photoshop document, and this time use the “Composition – Retain Layer Sizes” option.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Caleb Mclaughlin

    July 9, 2015 at 6:57 pm

    Hi Walter. Sorry I’m late getting back to this. Retaining Layer Sizes would do the trick except that they all import to the center of the composition, thus losing the overall picture. Is there a way to disperse the layers after importing them? Or maybe import the layers and then “Retain Layer Size” after the fact? Not sure what that would look like… maybe autocropping the layers somehow…

    —————————–

    Caleb

  • Caleb Mclaughlin

    July 9, 2015 at 7:45 pm

    I stand corrected. Retaining layer size is absolutely what I need to do, and I was simply bypassing the comp it made for me out of habit (since the PSD file didn’t match the dimensions I wanted). Kind of embarrassing that the solution was so simple. Thank you Walter for helping me clear that up.

    —————————–

    Caleb

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