Only one question, does anyone know if it is possible to use it trough dynamic link? So for example, if you place a dynamic link clip in a premiere timeline and stretch it to the length you want. That the expression takes the length of the clip.
currenttime = timeToFrames(t=time + thisComp.displayStartTime, fps=1.0 / thisComp.frameDuration, isDuration=false); //current tijd in frames
compduur = thisComp.duration*25; //tijdsduur compositie
You can only transfer so much over, but whatever the length of the project is in After Effects. Is what it will be.
Ways around it, if you know that your projects are never going to be longer than say 60 seconds always. Make it 60 seconds.
If using essential graphics, you can add a slider control that you can add length to for an outPoint, but if using dynamic link. It's more of a pain but can still be done. But you have to do it using a text layer to reference.
Also I'd use the expression in your scale if you literally want it to grow over the comp time