Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions how to reference another comp

  • how to reference another comp

    Posted by Chompy on August 26, 2007 at 1:47 pm

    Hi sorry for the basic question,
    but can anyone advise me as to how I go about referencing a property of a layer in a different comp within a project (eg position)

    Basically, I need the proper alternative to “thisComp”

    Hope you can help
    rgds
    chompy

    C4D R8 (core)
    MAC OSX
    512 MEG RAM

    Chompy replied 18 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Mike Clasby

    August 26, 2007 at 5:30 pm

    I Think the pickwhip is a pretty foolproof way. If you have the two comps open in the timeline window, and drag comp 2 off/up it will come detached and you’ll have two timeline windows showing. Now if you twirls down the same properties for both (say, S for Scale) then alt-click the Scale in comp 2 and pickwhip back to comp 1 you get:

    comp(“Comp 1”).layer(“master”).scale

    The name of the layer I pickwhipped to in comp 1 was “master”.

    Similarly Opacity is:

    comp(“Comp 1”).layer(“master”).opacity

    This is AE6.5 syntax, I don’t know if there is a difference, just pickwhip for yourself. If you want to reset the timeline windows to for just one, drag the second back over the first. You can do the same with the
    Comp Windows creating 2 views.

    Here is a Script that creates expressions for effects that can be copy/pasted (or use presets) to layers throughout the Project that link back to effects in that original layer. Here’s the Cow thread for reference:

    https://forums.creativecow.net/readpost/227/8341

    Thought it might be useful.

  • Chompy

    August 27, 2007 at 10:54 am

    Thanks, The “double comp” trick seems to be what I’m after.
    Thanks a bunch
    cheers
    Al

    C4D R8 (core)
    MAC OSX
    512 MEG RAM

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