Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Number of effects on a layer

  • Number of effects on a layer

    Posted by Chris Scalzo on June 7, 2023 at 5:36 pm

    I am trying to figure out if there is an expression to count the number of effects on a layer.

    Similar to the way numKeys or numLayers can return the number of keyframes or layers;

    is there a way to get a number of effects on a specific layer?

    Brie Clayton replied 1 year ago 4 Members · 4 Replies
  • 4 Replies
  • Filip Vandueren

    June 7, 2023 at 7:40 pm

    Hey Chris,

    this works I think:

    thisComp.layer("Black Solid 1")("Effects").numProperties
  • Chris Scalzo

    June 7, 2023 at 8:30 pm

    I didn’t see numProperties documented anywhere. Searched around before asking but I left my Javascript Manual at home since people were jamming it into AC vents to stop rooms from getting cold. I’ll double check it there when I get home but the code is working perfectly.

  • Dan Ebberts

    June 7, 2023 at 9:20 pm

    It’s in the Expression Language Reference section of the AE Help. It’s in the Property attributes and methods section (although it’s not very well marked–it’s actually in the propertyGroup writeup).

  • Brie Clayton

    June 8, 2023 at 12:43 am

    Thank you for solving this issue, Dan!

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