ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Is there a way to get the current effects name?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jon Smith
Is there a way to get the current effects name?
on Dec 14, 2016 at 3:56:27 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!



Return to posts index

Xavier Gomez
Re: Is there a way to get the current effects name?
on Dec 14, 2016 at 4:47:42 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


Return to posts index

Xavier Gomez
Re: Is there a way to get the current effects name?
on Dec 14, 2016 at 4:52:33 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)


Return to posts index


Jon Smith
Re: Is there a way to get the current effects name?
on Dec 14, 2016 at 5:19:07 pm

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



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]