Support SFMLab on Patreon

Switch Camera Shortcut Script


This script adds two shortcut key to switch between cameras in the current shot.

How to install

extract folder to "SourceFilmmaker\game\workshop\scripts\sfm\mainmenu" before staring sfm

How to use

  1. start the script under the script menu ->Custom Shortcuts->Switch Camera->enable_swich_camera
  2. the PgUp key will go to the next camera while the PgDown key goes to the prev

How to change the shortcut keys

close sfm first then open up the script file "SourceFilmmaker\game\workshop\scripts\sfm\mainmenu\Custom Shortcuts\Switch Camera\" in a text editor like notepad++. then at the end of the file you find on line 106 between in the quotes, the PgUp key. change that string to the key you want and the line 111 has the prev key shortcut.

do make sure that the new shortcut key is not already used by sfm to avoid issues.


in order for this script to work it has to temp disable the sfm undo system to prevent a crash. so please experiment with this script in a new session to see if it works without issue and let me know of any problems.

shout-out to Fullcaber for suggesting this script idea

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



These scripts are super useful, thank you!

Cr3ep posted 5 months, 3 weeks ago


Anyone knows a bit about scripting? I have tried around a bit with turning SFM into a VR viewer. Is it possible to make a script that: 1.) Makes two lights. 2.) Set intensity to 0. 3.) Move one light a bit to the left and one a bit to the right. 4.) Put viewport 1 over the left half of the screen and viewport 2 over the right half. 5.) Set the left light as the camera for viewport 1 and the right light as the camera for viewport 2? I am literally using SFM as a VR viewer with my phone and some cheap cardboard like headset, but setting up the light cameras (because normal cameras don't work, well done valve) is a pain in the ass :P

gafgraegdsfgadsg - BANNED - posted 5 months, 3 weeks ago


Ye this obivously useful when set few cameras around the model and fastswitch cameras to see what your animating :)

cblpop posted 5 months, 2 weeks ago



Vooming1337 posted 5 months ago


This does not let you switch between the active camera and work camera, right? I wish there was a shortcut for that

Vooming1337 posted 5 months ago

@Vooming, there's already a shortcut option for that in SFM, you just need to bind it to a key.

jinsu2301 posted 5 months ago


SourceFilmmaker\game\workshop\scripts\sfm\mainmenu no such folder

TheDirtDen posted 2 months, 2 weeks ago

Leave a reply

You need to be logged in to leave a comment.

Support SFMLab on Patreon