Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Connect parameter to parent comp.

  • Connect parameter to parent comp.

    Posted by Konstantin Kartashov on October 11, 2016 at 11:36 am

    Hi, guys
    I have very tricky question. Is there a way to constrain some parameter to another parameter in parent composition? The point is that when we use usual pickwhip to connect parameters in different comps, we get the exact name of the comp in expression. And if we move connected objects to another comp, it’s stop working. But in most cases (personally me) need to connect objects in nested comps. Thus the best way to get it to work is to constrain it to parameter in “parent comp”, not in the comp with exact name.

    Dan Ebberts replied 9 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    October 11, 2016 at 12:59 pm

    You can only reference another comp by name. In some cases, you can construct the name of the “parent” comp on the fly, using the name of the comp containing the expression. For example, if Comp 1 is always nested in Master 1 and Comp 2 is nested in Master 2, etc., you can construct your expression such that if the expression is in Comp 3, for example, it links to Master 3, like this:

    comp(“Master ” + thisComp.name.split(” “)[1]).layer( etc.

    Dan

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