tophf

GoToFrameNumberUnderCursor.py

Oct 17th, 2011
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. script = avsp.GetWindow().currentScript
  2. cursorpos = script.GetCurrentPos()
  3. startpos = script.WordStartPosition(cursorpos, True)
  4. endpos = script.WordEndPosition(cursorpos, True)
  5. frametext = script.GetTextRange(startpos, endpos)
  6. avsp.ShowVideoFrame(int(frametext))
  7.  
Advertisement
Add Comment
Please, Sign In to add comment