Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions [SOLVED] Expression values and Precomps

  • [SOLVED] Expression values and Precomps

    Posted by Pierpaolo Ferlaino on April 12, 2013 at 11:50 am

    Hi.

    I have a project made like this:

    MainComp -> PrecompA -> PrecompB

    I have to animate some numerical values from a slider effect inside PrecompB from my MainComp.

    I tried to pickwhip the values of the slider in PrecompB to a slider in a NULL inside my main composition.
    If both my NULL and my PrecompA start at time 0 inside the main composition, everithing works fine but if my PrecompA starts at – for example – 3:00 seconds then the values start with a time offset of 3 seconds.
    I know I can use an offset value inside my pickwhip expression to correct this but if I move around the starting point of my PrecompA inside MainComp I have to manually change the offset every time.
    There’s some way to automatically change my time offset value as I move the starting point of my PrecompA inside MainComp?

    Thanks

    Leslie Van berkel replied 12 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Pierpaolo Ferlaino

    April 12, 2013 at 1:39 pm

    Ok I solved it:

    offset = comp("MainComp").layer("CompA").startTime

  • Leslie Van berkel

    April 4, 2014 at 10:23 am

    Hi Pierpaolo,

    Thanks for giving answer to my problem, with pre-comps which are not triggert inside ae expressions while making keys . How can I add this line inside my expression?

    framesToTime(comp("ellen_head").layer("Mouth_CTRL").effect("Mouth")("Slider"))

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