FORUMS: list search recent posts

Reference this comp name in expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Peter Stone
Reference this comp name in expression
on Jul 30, 2014 at 4:49:34 pm

I am trying to migrate a few key frame attributes to show up in a comp higher in my hierarchy, so I have been using expressions that link to sliders in higher comps.

comp("Keyframed Comp").layer("This Comp").effect("Property")("Slider")

It works fine, but I was just hoping to speed up my process a bit, is there a way to retrieve the name of the current comp as text? Right now, I have to change layer("this comp") every time I copy the expression in a new comp, but the layer I am referencing is always just the name of the current comp I am applying the expression to.


Return to posts index

Dan Ebberts
Re: Reference this comp name in expression
on Jul 30, 2014 at 5:01:47 pm

Like this:

comp("Keyframed Comp").layer(thisComp.name).effect("Property")("Slider")


Dan



Return to posts index

Peter Stone
Re: Reference this comp name in expression
on Jul 30, 2014 at 5:27:33 pm

Perfect, Thanks


Return to posts index

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