Skip to main content
Inspiring
December 9, 2019
Answered

Loop part of video clip

  • December 9, 2019
  • 1 reply
  • 8913 views

Is there a way to loop only some few selected frames from a video clip? I know how to loop a whole short video clip, with time remapping expression: loopOut(type="cycle",numKeyFrames=0)


I also tried to create a comp where I put the work area beginning and end for the desired frames and put that comp into a new one, but it wont repeat... 

This topic has been closed for replies.
Correct answer Rick Gerard

It is even simpler to loop a video if you trim it, pre-compose moving all attributes and adjusting the length of the comp, Time Remap (Alt/Option + Ctrl/Cmnd + t), then K to move to the last TR keyframe, then Ctrl/Cmnd + left arrow to move back one frame, then add a new TR keyframe with a click, then k to move to the last keyframe and select it, then delete the last keyframe, then Alt/Option-click the TR stopwatch and enter "loopOut()" and you are done. The whole thing should take less than 30 seconds and eliminates the problems caused when time remapping adds keyframes at the start and end of any video clip added to a timeline no matter what the in and out points have been set to.

 

 

1 reply

Martin_Ritter
Legend
December 9, 2019

Simple:

cut the layer in 3 parts (before loop, loop, after loop) and use time-remap and loop expression to loop the middle part.

 

Advanced:

Use loop expression in combination with if-condition:

 

loopstart = ...

loopend = ...

if (time >= loopstart && time <= loopend){

loopOut(...)

} else {

time;

};

 

 

*Martin

 

 

Rick GerardCommunity ExpertCorrect answer
Community Expert
December 9, 2019

It is even simpler to loop a video if you trim it, pre-compose moving all attributes and adjusting the length of the comp, Time Remap (Alt/Option + Ctrl/Cmnd + t), then K to move to the last TR keyframe, then Ctrl/Cmnd + left arrow to move back one frame, then add a new TR keyframe with a click, then k to move to the last keyframe and select it, then delete the last keyframe, then Alt/Option-click the TR stopwatch and enter "loopOut()" and you are done. The whole thing should take less than 30 seconds and eliminates the problems caused when time remapping adds keyframes at the start and end of any video clip added to a timeline no matter what the in and out points have been set to.

 

 

Inspiring
December 10, 2019

Definitely easier, thanks!