KeyFrame Mover


this is an experimental script that creates a shortcut within SFM that selects key frames to the right of the mouse and shifts them over either a frame forward or back. The main use for this is to help with timing on frames. This video should explain it better.


How to install

  1. extract the files* cv2.pyd*,*, numpy* and numpy-1.10.1.dist-info to "SourceFilmmaker\game\sdktools\python\global\lib\site-packages"

  2. extract and the two images to "SourceFilmmaker\game\platform\scripts\sfm"

  3. now here you can either copy every line in and past it into or just rename to ** ** if nothing important is in it.

  4. it should work now the next time SFM starts be sure to check the console or script editor for errors.

How to use

  1. This script has three shortcut keys, which can be change at end of the script file.
  1. shift forward ".": all bookmark keys on screen and to the right of the mouse will get selected and shift over a frame to the right, or any already selected frames will shift

  2. shift back ",":all bookmark keys on screen and to the right of the mouse will get selected and shift over a frame to the left, or any already selected frames will shift

  3. re-scale "/": this one controls how far in pixels the keys move. use this after changing zoom level to get smoother shifts.

How this script works

This script uses the OpenCV library in order to work

first it takes a screenshot of the window then it uses a template img to find all the bookmarks on screen and records each one positions to the right of the mouse. from there the script moves the mouse to each key selecting it then just uses middle click to drag the keys over. There is a simpler way to do this in sfm with only python but due to an unfixed bug it will crash SFM if you do it with a GUI.

feel free to modify the script for your own use if you find any bugs or have suggestions message me in the comments below.


SFMLab is a free service. However, it costs about $0.03 to deliver you a 1GB file. With over 20TB of traffic every month and growing, SFMLab needs your help. If only 1% of our users each gave us $5 for a single month, we could keep the site running for several years.

Filename Downloads Created Filesize
Files   530 2017-06-07 02:58:58 7.58 MB   464 2017-06-07 15:12:43 7.58 MB
Thumbnail image for KeyFrame Mover
Importing SFM Maps into Blender
REDxEYE recently updated his SourceIO plugin. The latest version allows you to import SFM maps.

Comments (-)


Leave a comment

You need to log in if you want to leave a comment.