Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Referencing Parent Composition Properties

  • Referencing Parent Composition Properties

    Posted by Prestonchuckles on April 25, 2006 at 9:05 am

    I hope this makes sense:

    I have a composition with audio keyframes, so things will animate to the beat of the music I have. I have a nested composition in this comp. I want to connect the scale of something inside of my nested comp to the audio keyframes.

    When I pick-whip something inside the comp with the audio keyframes, I get this little expression:

    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    [temp, temp]

    So I assume I need to change “thisComp” to … something. I tried root, rootComp, parent, parentComp, _root, _parent, everything I can think of.

    I can’t find any help online, because looking for AE with “referencing” brings up book reviews and parent finds parenting stuff.

    So please, please, please! if you can help me, I would be in your debt.

    Thanks!

    Accountclosedduetonorealnameused replied 20 years ago 3 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    April 25, 2006 at 1:36 pm

    You have to use the actual name of the parent comp.

    Dan

  • Accountclosedduetonorealnameused

    April 25, 2006 at 3:06 pm

    if your parent comp was named “audio_comp” your new code would be:

    temp = comp(“audio_comp”).layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    [temp, temp]

  • Prestonchuckles

    April 25, 2006 at 5:01 pm

    That solved it perfectly. I suppose if I had paid alittle more attention to it I could have seen that. Thank you so very much.

  • Accountclosedduetonorealnameused

    April 25, 2006 at 8:56 pm

    nah, the slightest bit of syntax can derail the whole thing.

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