-
control with markers problem
hey guys,
i am trying to make two markers on precomposition that will control start and end of transition (from 0 to 100) inside that precomposition on a text layer.
so far it was working good, but time is giving me a problem,if i move precomposition on timeline, “in” marker works fine, but “out” marker sometimes work, sometimes not..
any idea what i am doing wrong?
if (comp("MAIN COMP").layer("HOR-TXT-1").marker.numKeys > 0){
m = comp("MAIN COMP").layer("HOR-TXT-1").marker.nearestKey(time);
t = m.time;
s = comp("MAIN COMP").layer("HOR-TXT-1");if (m.index%2){
ease(time+s.inPoint,t,t+25*thisComp.frameDuration,0,100)
}else{
ease(time+s.inPoint,t,t+25*thisComp.frameDuration,100,0)
}
}else{
value
}