Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions using Tex source for numirical value?

  • using Tex source for numirical value?

    Posted by Assaf Goldlust on November 8, 2020 at 6:57 pm

    So i have created random numbers between 0-100 generated in a text layer
    with random() expression.
    Now i want to use those numbers as a value for linear wipe effect on another layer.

    The problem is:
    Because the numbers are on the “source text” property
    its recognized as a string not as numerical value.

    is there a way to get it linear wipe to recognize it as numbers and not as string?

    Assaf Goldlust replied 5 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Tomas Bumbulevičius

    November 8, 2020 at 7:01 pm

    if you need numbers with decimals:
    parseFloat(yourStringFromSourceText)

    If integers:
    parseInt(yourStringFromSourceText)

  • Assaf Goldlust

    November 8, 2020 at 8:41 pm

    THANKS!

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