ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Set wiggle value to drive text layer?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mike Douglas
Set wiggle value to drive text layer?
on Feb 7, 2017 at 1:35:25 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!



Return to posts index

Dan Ebberts
Re: Set wiggle value to drive text layer?
on Feb 7, 2017 at 1:47:22 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



Return to posts index

Mike Douglas
Re: Set wiggle value to drive text layer?
on Feb 7, 2017 at 1:52:58 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!


Return to posts index


Mike Douglas
Re: Set wiggle value to drive text layer?
on Feb 7, 2017 at 1:57:42 am

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


Return to posts index

Mike Douglas
Re: Set wiggle value to drive text layer?
on Feb 7, 2017 at 2:02:04 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"))


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]