Thread: AvsPmod 2.5.1
View Single Post
Old 10th July 2011, 13:10   #557  |  Link
wOxxOm
Oz of the zOo
 
Join Date: May 2005
Posts: 208
a handy macro for 2.2+ to shift bookmarks by a given +/- number of frames
Code:
try:
    shift=int(avsp.GetTextEntry("Shift bookmarks by # frames"))
    try:
        bookmarks=[(b+shift, t) for b,t in avsp.GetBookmarkList( title=True )]
    except TypeError:
        bookmarks=[(b+shift) for b in avsp.GetBookmarkList()]
    avsp.GetWindow().DeleteAllFrameBookmarks()
    avsp.SetBookmark( bookmarks )
except:
    pass

Last edited by wOxxOm; 10th July 2011 at 13:16.
wOxxOm is offline