Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Dan Ebberts

    February 6, 2009 at 7:31 pm

    This will give you an integer:

    parseInt(thisComp.layer(“text layer”).text.sourceText)

    This will give you an floating point:

    parseFloat(thisComp.layer(“text layer”).text.sourceText)

    Dan

  • Dotan Stern

    February 8, 2009 at 7:47 am

    How exactly do you use it?
    i tried to use it on the source text

  • Filip Vandueren

    February 8, 2009 at 7:59 am

    That would have no effect.

    You would be parsing a number contained in the text-layer, but outputting it again to the textlayer: it would again be a string.

    This is only useful if you have a number in the text that you want to use in another expression.
    The syntax is self-explanatory I’d think.

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