Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggle the String/Number in a Text Layer

  • Wiggle the String/Number in a Text Layer

    Posted by Nawaz Alamgir on June 4, 2020 at 3:45 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.

    Nawaz Alamgir replied 5 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 4, 2020 at 4:12 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

  • Nawaz Alamgir

    June 4, 2020 at 9:13 pm

    As usual, Dan is the man.

    Thank you, works for me!

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