PDA

View Full Version : expressions and variables


soupman99
05-26-2010, 02:34 PM
I have this expression I'm using, but I keep getting errors. I think it has to do with the linear() function I'm using.


startTime = 1.5; //in seconds
endTime = 5; //in seconds
startValue = 0;
sText = parseInt(comp("INFO").layer("showNumber").text.sourceText));
endValue=sText;

count=linear (time, startTime, endTime, startValue, endValue) ;
Math.round(count);


any ideas?

mart1jn
05-26-2010, 04:13 PM
The expression doesn't seem to work if there's something else than a number in the text-layer.
And of course the obvious: Is there a composition "INFO" with a textlayer "showNumber" ?

Other than that it gives no errors here (AE CS4 for Mac)

cheers

CGTalk Moderation
05-26-2010, 04:13 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.