Here is some updates:
I tried using linear with the script as follows:
clockStart = parseInt(comp("main").layer(5).text.sourceText.value);
clockTime = clockStart-1*(time);
sIn = key(2).time - key(1).time;
sOut = key(4).time - key(3).time;
if (time < clockStart)
linear(time,sIn,key(2).time,key(1).value,key(2).value)
else if (time >clockStart)
{
linear(time,key(3).time,sOut,key(3).value,key(4).value);
}>
I’m using this on the time remap propertery with 4 keyframes. One issue I have here is, if I change the clockStart to some value 14 seconds for example, I need to adjust the keyframe4 manually to get the fadeout properly on the closure, otherwise it does a cut.
Any Other solution to this problem please.