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 a post-expression value in another comp?

  • How to reference a post-expression value in another comp?

    Posted by Steve Roberts on March 27, 2014 at 5:15 pm

    Hey all,

    In comp 1, I set a Transition Completion value to 75, then wiggled that value successfully.

    In comp 2, I added the Text>Numbers effect to show the wiggling value of of the Transition Completion (from comp 1). However, the Numbers effect only shows 75, *not* the value after the wiggling. So the cross-comp expression is not reading the wiggled value, just the original value.

    What am I missing?

    Thanks,
    Steve

    Steve Roberts replied 12 years, 1 month ago 3 Members · 3 Replies
  • 3 Replies
  • George Goodman

    March 27, 2014 at 6:11 pm

    Try wiggling a slider control instead since it just spits out numbers no matter what. Attach what you want wiggling to that, and then reference it for the other effect as well. I think this should fix your problem.

    “|_ (°_0) _|”

    Sincerely,

    George

  • Dan Ebberts

    March 27, 2014 at 6:24 pm

    This works for me:

    comp(“Comp 1”).layer(“Layer 1”).effect(“Linear Wipe”)(“Transition Completion”);

    Dan

  • Steve Roberts

    March 28, 2014 at 1:51 pm

    Thanks, gents: they both work in a test comp.

    I had forgotten the idea of tying to a slider, George. Good one.
    Dan, yours was the expected solution, and it works nicely on a test comp, but not in my original project. Hm.

    George, I’ll try yours in the original project, and Dan, I’ll compare yours to my original project attempt. If it still doesn’t work, I’ll dig deeper. When I find the solution, I’ll post back.

    It’s probably something very simple.

    Thanks again,
    Steve

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