Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to access shape layer info via expressions

  • How to access shape layer info via expressions

    Posted by Ryan Paterson on October 17, 2011 at 7:35 pm

    Just trying to position my anchor point within the bounding box of my shape path. I tried using the layer.width and layer.height properties but it’s just using the values of the actual ‘shape layer’ and not the path within the layer.

    Any ideas?

    Christopher R. green replied 14 years, 6 months ago 3 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    October 17, 2011 at 8:58 pm

    It’s the same issue that you have with text layers. Search this forum for sampleImage and you’ll find some threads about how to find the edges of text layers. There’s a much cleaner way to do it with scripting, but it’s not suitable for all applications.

    Dan

  • Christopher R. green

    October 18, 2011 at 4:04 pm

    I offer a script solution; it seems you are trying to do what my Separate_Masks_In_Layers script does. It can re-anchor each new layer according to its mask’s ‘bounding box’. (But it does, perhaps unfairly, require there be two or more masks on a layer).

    https://www.crgreen.com/aescripts

    -cg

  • Ryan Paterson

    October 19, 2011 at 4:48 pm

    Awesome, thanks guys. Great scripts Chris, I’m going to install a couple of them!

  • Christopher R. green

    October 19, 2011 at 7:03 pm

    [Ryan Paterson] “Awesome, thanks guys. Great scripts Chris, I’m going to install a couple of them!”

    Thanks! Let me know if you have any questions or suggestions.

    -cg

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