Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Set wiggle value to drive text layer?

  • Set wiggle value to drive text layer?

    Posted by Mike Douglas on February 7, 2017 at 1:35 am

    Hi there, I’m building a fake user interface. I have 2 circular rings that I’m revealing with Radial Wipe – see attached image (each ring is separate and would have its own value).

    I have a Wiggle expression on the Transition Completion, and I was hoping to use that value to drive a text layer – to type out the current percentage of the ring that’s visible. Is there a way to do this with an expression?

    Just a note that the Transition Completion is the opposite of the number that I want to display (eg: if the value is at 80, then the number I want to display is 20, so I guess that’d be 100-[value]). Thanks very much!

    Mike Douglas replied 9 years, 3 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    February 7, 2017 at 1:47 am

    I think you’ve nearly got it. I’d start with something like this:

    100 – thisComp.layer(“Circle 1”).effect(“Radial Wipe”)(“Transition Completion”)

    Dan

  • Mike Douglas

    February 7, 2017 at 1:52 am

    Nice! Thanks again Dan. I’ll give that a shot. Didn’t realize you could reference layers like that. I assume I’d plug that into the Source Text for the text layer. Cheers!

  • Mike Douglas

    February 7, 2017 at 1:57 am

    OK, just tried it and that works perfectly. Thanks again!

  • Mike Douglas

    February 7, 2017 at 2:02 am

    Oh, and I added a Math.round so it didn’t return ridiculously long numbers:

    100 – Math.round(thisComp.layer(“circleL2”).effect(“Radial Wipe”)(“Transition Completion”))

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