-
Link counters between compositions
Good afternoon!
I have a problem that I can’t solve.
I’m going to have a compo with many compos sequentially inside.
But all these compos that go inside the main one have a layer somewhere that has a minute and second counter. And when putting them all in the main compo they have to coincide all the time with that of the main composition.
I have a text layer (which all build counter text layers will read from) with this expression in source text:
duration = thisComp.duration;
currentTime = time;
minutes = Math.floor(currentTime / 60);
seconds = Math.floor(currentTime % 60);
minutesText = minutes < 10 ? ‘0’ + minutes : minutes;
secondsText = seconds < 10 ? ‘0’ + seconds : seconds;
minutesText + “:” + secondsText;
If I link the source text of the layer that I have precomposed to the source text of the layer of the main composition, the problem is that it reads me the time of the composition where the layer that I have linked is (the one that receives the expression), but this composition, for example, starts at second 5 of the main composition, so it should start counting at 5:00 and not at 0:00, which is what happens now.
Help!!