Log in

View Full Version : instead of 'ShowFrameNumber', trying to write a 'ShowStartingFrameNumber' filter


Ein
24th March 2017, 15:14
The code

clip.ShowFrameNumber(scroll=false)

will put the current frame number on each frame of 'clip'. In particular, each frame has a different number.

I'm trying to write a new filter - let's call it 'ShowStartingFrameNumber' - which will repeat just one unchanging number across every frame. This number represents the "starting frame number" of the clip to which that frame belongs to. In other words, on the first frame of the clip it would behave like the 'ShowFrameNumber' filter, but the number wouldn't continue to increase.

With such a filter, you could do something like

clip1.ShowStartingFrameNumber + clip2.ShowStartingFrameNumber + clip3.ShowStartingFrameNumber

and when previewing the video it would be immediately clear where each clip started without having to find the exact starting frame.