ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Getting value from SourceText with parseInt() expression

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Solution
Declan Smith
Re: Getting value from SourceText with parseInt() expression
on Mar 12, 2015 at 3:36:15 pm

Below is an example of how to use parseInt to take a text layer (called MyTextLayer) source property as the input.

Note that this will only work as is if the source text is entirely a number.

parseInt(thisComp.layer("MyTextLayer").text.sourceText)

Declan Smith
http://www.madpanic.tv
After Effects CS6/ FCS3 / Canon XLH1 / Canon 7D / Reason / Cubase

"it's either binary or it's not"


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]