| In an expression, is it possible to have the "time" command start at the beginning of a layer?
• | | | |
 | In an expression, is it possible to have the "time" command start at the beginning of a layer?
by Jonathan Steele on May 23, 2012 at 4:17:06 pm |
I am trying to create an expression that allows the "time" command start at the beginning of the layer it is in opposed to the beginning of the comp. Is that even possible?
It is going to be used with several other expressions to bring text onto the screen like an old computer. There are about 200 lines of text so I would like to avoid pre-composing all of them to get it to work.
Math.round(time*thisComp.layer("Controller").effect("Typing Speed")("Slider"))
| | | | |
• | | | |  | Re: In an expression, is it possible to have the "time" command start at the beginning of a layer? by Dan Fredley on May 23, 2012 at 4:50:38 pm |
I think you want:
var layerTime = 0;
if (time > thisLayer.inPoint) layerTime = time-thisLayer.inPoint;
layerTime;
Dan Fredley
| | | | |
• | | | |  | Re: In an expression, is it possible to have the "time" command start at the beginning of a layer? by Jonathan Steele on May 23, 2012 at 4:53:36 pm |
Thank you!
Works perfectly!
| | | | |
| |
|