Skip to main content
Participant
June 21, 2025
Question

Set the starttime of a video layer

  • June 21, 2025
  • 1 reply
  • 284 views

In premiere pro, I have a lot of video one after the other. I want to make a transition between each of them (the same transition each time). Th transition is quite complex for Premiere, so I want to create a mogrt in after effects.

 

So in AE, I have two video layer. But I need to be able to change the start time of each one.

In PP :

-video1-mogrt-video2

in AE

-end of video1-start of video2-

in mogrt

cursor 1 : time to start video 1

cursor 2 : time to start video 2

 

In PP, I will change the videos and the cursors in the mogrt, each time I'll use it.

 

But in AE, how can I change the startTime of each videos at the "start" of the mogrt ? Like this kind of script :

on startmogrt() --execute this just before playing the mogrt

  video1.startTime=cursor(1);

  video2.startTime=cursor(2);

end

 

I try to put this (correct) script in lot of place (nul object->position, remap time of  video layer, ...) but, of course, nothing works !

 

My question : is there a place where I can write a script that is executed at the start of a mogrt ?

1 reply

Dan Ebberts
Community Expert
Community Expert
June 21, 2025

Assuming video 2 is below video 1 in the timeline layer stack, enable Time Remapping for video 2, drag its out point to the right (to the end of the comp?) and add this expression to video 2's Time Remap property:

tStart = thisComp.layer("video 1 ").outPoint;
Math.max(time - tStart,0)
BubarnetAuthor
Participant
June 22, 2025

Thank you !

It's not exactly what I need, but now I understand how time remap works. And I've managed to create my transition.