ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Wiggle the String/Number in a Text Layer

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nawaz Alamgir
Wiggle the String/Number in a Text Layer
on Jun 4, 2020 at 3:45:05 pm

Hi

I'm trying to write an expression that can animate the number in a text layer without parenting to a slider.

so if i have a number in a text layer say 4000, i want to add a wiggle to it.
I've managed to animate using time parseFloat(text.sourceText)+time*100 but can't seen to crack how to wiggle it!

Can help would be great, thank you.


Return to posts index

Dan Ebberts
Re: Wiggle the String/Number in a Text Layer
on Jun 4, 2020 at 4:12:33 pm

You can just borrow a convenient property, like rotation, wiggle that, then subtract out its value:

parseFloat(text.sourceText)+ rotation.wiggle(1,100) - rotation


Dan



Return to posts index

Nawaz Alamgir
Re: Wiggle the String/Number in a Text Layer
on Jun 4, 2020 at 9:13:25 pm

As usual, Dan is the man.

Thank you, works for me!


Return to posts index

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