Switch Camera Shortcut Script

 Large preview image for 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\enable_swich_camera.py" 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.

Filename Downloads Created Filesize
🇳🇱 EU Download
🇨🇦 NA Download
93 2019-05-04 2.98 KB
🇳🇱 EU Download
🇨🇦 NA Download
51 2020-03-01 67.85 KB
Thumbnail image for Switch Camera Shortcut Script


Ye this obivously useful when set few cameras around the model and fastswitch cameras to see what your animating :)
Reply • May 5, 2019, 9:21 p.m. -  zccblp
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
Reply • May 5, 2019, 2:12 a.m. -  gafgraegdsfgadsg
@Vooming, there's already a shortcut option for that in SFM, you just need to bind it to a key.
Reply • May 23, 2019, 12:23 p.m. -  jinsu2301
This does not let you switch between the active camera and work camera, right? I wish there was a shortcut for that
Reply • May 23, 2019, 10:29 a.m. -  Vooming1337
Reply • May 23, 2019, 10:16 a.m. -  Vooming1337

Leave a comment

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