Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Is there an expression references the effect?

  • Is there an expression references the effect?

    Posted by Jamie Bradshaw on July 5, 2008 at 7:29 am

    Hi all.

    Does anyone know of an expression that can reference the effect that it is in?

    Something like a thisEffect much like the way you can use thisLayer

    I was hoping to be able to do something like this:

    thisEffect.name.length;

    Thanks,

    Jamie Bradshaw
    Motion Graphic Artist
    https://www.vimeo.com/jimjam

    Jamie Bradshaw replied 18 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 5, 2008 at 5:08 pm

    You can use propertyGroup() to go up the chain. For example, propertyGroup(1).name.length will give the length of the name of property group one level up, which might be the effect itself.
    If not, try propertyGroup(2).name.length and so on until you get to the effect level.

    Dan

  • Jamie Bradshaw

    July 5, 2008 at 8:12 pm

    Thanks loads Dan. I’m using the expression:

    propertyGroup().name.length;

    and it’s returning the length of the effect name. Just what I was after.

    One again you save the day! 😉

    Jamie Bradshaw
    Motion Graphic Artist
    https://www.vimeo.com/jimjam

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