Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Loop part of video clip

Contributor ,
Dec 09, 2019 Dec 09, 2019

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... 

Screenshot 2019-12-09 11.48.19.png

TOPICS
Expressions , How to
8.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 09, 2019 Dec 09, 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 s

...
Translate
Mentor ,
Dec 09, 2019 Dec 09, 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

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 09, 2019 Dec 09, 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.

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 10, 2019 Dec 10, 2019
LATEST

Definitely easier, thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines