Log in

View Full Version : How can an overlay last for specific frames?


dahlany
24th May 2011, 23:17
I have the feeling I'm overlooking something really simple. I'm trying to make this overlay, in this case a simple square over some colorbars, last for a specific time.

The attempt here is for the overlay to start at frame 100 and end at 150, but is instead on throughout the entire clip.

C1=colorbars().Trim(0,499)
C2=ImageSource("overlay100x100.jpg", start=100, end=150)
Overlay(C1, C2, 200,210, mode="blend", opacity=1)
KillAudio

info

Gavino
24th May 2011, 23:35
C1.Trim(0,99)+Overlay(C1.Trim(100,150), C2, 200,210, mode="blend", opacity=1)+C1.Trim(151,0)

Note that
C2=ImageSource("overlay100x100.jpg", start=100, end=150)
still produces a clip with 51 frames and is the same as
C2=ImageSource("overlay100x100.jpg", start=0, end=50)

dahlany
25th May 2011, 00:00
Thank you, Gavino! That works perfectly. The solution is so simple that I am slowly grasping at how it works. It's the long lines. Sometimes I have to break them down into individual lines to understand what's happening. :)

From the way it looks, many overlays could be placed on this line to pop in and out over the length of a clip. :cool: