Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Is there a way to get the current effects name?

  • Is there a way to get the current effects name?

    Posted by Jon Smith on December 14, 2016 at 3:56 pm

    Hello everyone…

    I’m trying to get the name of the current effect that I’m writing an expression in. Something like thisEffect.name. Is there a way to do this? Thanks!

    Jon Smith replied 9 years, 5 months ago 2 Members · 3 Replies
  • 3 Replies
  • Xavier Gomez

    December 14, 2016 at 4:47 pm

    If you pickwhip the effect itself (not a property inside it), you’ll get something like
    thisComp.layer(“Layer name”).effect(“Effect name”)
    Then add .name to it to get:

    thisComp.layer(“Layer”).effect(“Effect name”).name;

    (that’s a string, the name of the effect).

    Xavier

  • Xavier Gomez

    December 14, 2016 at 4:52 pm

    Just thinking, you might actually want something else.
    This will also work for a property that is an immediate child of the effect:

    thisProperty.propertyGroup(1).name;

    In general thisProperty is the current property, and thisProperty.propertyGroup(n) is its nth parent.
    (n=0 not allowed)

  • Jon Smith

    December 14, 2016 at 5:19 pm

    Thanks Xavier! That second response was exactly what I was looking for.

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