Aeyaz
October 6, 2015, 6:41pm
879
felt_tips:
L = thisLayer;
Src = L.source;
SrcDur = Src.duration;
LDur = L.outPoint-L.inPoint;
SrcInDur = framesToTime(56); //the duration of the in animation
SrcOutDur = framesToTime(26); //the duration of the out animation
SrcLoopDur = SrcDur-SrcInDur-SrcOutDur; //the rest is the loop
if(time < L.inPoint+ SrcInDur) { //in animation
tSampleT = time-L.inPoint; //sample time is just the value
} else if(time > L.outPoint-SrcOutDur) { //out animation
LOutElapsed = time - (L.outPoint-SrcOutDur);
tSampleT = SrcDur-SrcOutDur + LOutElapsed;
} else {
tSampleT = SrcInDur+Src.frameDuration;
}
Thanks felt.
It works fine now. After going through the new code, even i understand what was the problem earlier.
Thanks for your help. The project is done uploaded. Waiting for the review.