How to run apply Snap Camera virtual props to Webcam Photobooth
This tutorial runs through integrating Snap Camera with Webcam Photobooth to add amazing 3D ‘lenses’ (virtual props) to your photos, GIFs and videos.
You will need a web camera* and a Windows (10 or 8) PC or tablet, with these 4 programs installed
*Use a high quality camera for good results. This can be a separate web cam or the camera built into the PC.
**AutoHotKey is a free automation scripting language which you need to run the Webcam_Snap_Camera.ahk script
The script is set up to offer guests a choice of 2 Snap Camera lenses, and works with photos, GIFs and video. Shoot in color or B&W, and let guests switch between them.
This tutorial shows you how to get Snap Camera working with your photo booth, running through
The script has been written for screen resolutions of 1920 by 1080 pixels. You may need to change it slightly if your screen has a different resolution.
Check you have downloaded and installed Webcam Photobooth, Snap Camera, AutoHotKey and the Webcam_Snap_Camera.ahk script on your computer. There are download links at
(1) and (2) Choose two lenses by clicking on the star in the top left corner of each lens.
NB I chose lenses from the ‘Cute’ Menu. Choose any pre-designed lenses, or design and add your own.
(3) Then click on the Favorites star in the top left corner of the window to list your selections
(4) Add Hotkeys for each lens
You need to select Edit then type the shortcut key into your keyboard. For your first lens hold down the CTRL , Alt and A keys at the same time. Save this Hotkey and move to the next lens. Use CTRL , Alt and B for the second lens. The go back to the main Snap Camera screen.
Guests will be able to switch between lenses and toggle them on and off at the booth. You can add an optional button for turning lenses on and off in the Snap Camera settings:
Scroll down the settings page until you find Turn lens On/Off. Add CTRL , Alt and O and save the setting. (Use the letter O, not zero.)
Go back to the main page and leave Snap Camera running.
Start the Webcam_Snap_Camera.ahk script by double clicking on it.
Take a copy of the ready.jpg in your PhotoboothImages folder and edit it, adding graphics for the new props
The new ready.jpg must be the same size in pixels as the image it replaces. If you are not sure where to position the graphics, run Webcam Photobooth and the script, and click on Ctrl + Alt + S. This will display the toolbar area in red:
To give guests a bigger selection of props you need to make one or two small changes to the AHK script.
You also need to
Open the script in Microsoft Notepad or any editor of your choice
Find the line numProps:=2
To offer three props, just change 2 to 3 and save the script with a new name
The standard script has a 300 pixel wide toolbar positioned centrally below the live view.
To keep the central position and make the toolbar 100 pixels wider I changed the value of toolbarLeft to 760 and toolbarRight to 1160, then saved my changes.
I changed my ready.jpg adding graphics for the third prop and put the new image into my PhotoboothImages folder as before
Now go back to Snap Camera. Favorite your extra lens(es) and add the Hotkey. For the third prop this is CTRL + Alt + C.
When you have saved the new Hotkeys return to the main Snap Camera screen.
You should have a working system now. Toggle all your props on and off to check they work.
The rest of this tutorial shows how to change the AHK script to move the prop icons, which is useful if your screen has a different resolution or the toolbar position doesn’t fit the screen design. There are also a few notes outlining what to do if some of your Hotkeys don’t work.
You may find the toolbar position for the prop icons interferes with other parts of your screen design. To move the icons, you need to change the toolbar position. If your screen resolution is not 1920 by 1080, you probably need to move the toolbar to a better position. There’s a little pixel counting required to make these changes but nothing too challenging.
Editing the ahk script to move the prop buttons is very simple if you keep them in a horizontal line. (Making more complex changes is out of the scope of this tutorial.)
The standard ahk script sets the toolbar position as
toolbarLeft := 810
toolbarRight := 1110
toolbarTop := 930
toolbarBottom := 1030
What does this mean?
The standard toolbar is 300 pixels wide (1100 – 810) and 100 pixels high ( 1030-930). This is designed for 3 icons up each to 100 pixels square.
You could also use the standard toolbar for 4 props each up to 75 pixels square.
To change the position or size of the icons on your screen, change the values of toolbarLeft, toolbarRight, toolbarTop and toolbarBottom.There are a few examples below.
Don’t forget to use the toolbar locator (Ctrl + Alt + S) to check you that the toolbar and ready screen icons line up correctly.
toolbarLeft := 30
toolbarRight := 540
toolbarTop := 980
toolbarBottom := 1080
Not all computer screens are the same size, and they come in many different resolutions. If you have a small touchscreen you will need to edit the script to move the toolbar.
toolbarLeft := 490
toolbarRight := 790
toolbarTop := 875
toolbarBottom := 975
toolbarLeft := 30
toolbarRight := 540
toolbarTop := 924
toolbarBottom := 1024
Many programs use the Hotkey shortcuts, and some of these may interfere with the operation of the Webcam_Snap_Camera.ahk script. If some Hotkeys casue strange effects or don’t work at all, you may need to change them.
Many programs use the Hotkey shortcuts, and some of these may interfere with the operation of the Webcam_Snap_Camera.ahk script.
You will need to tell both Snap Camera and Webcam_Snap_Camera.ahk what keys to use. There are more details in the notes included with the script.
We have been through
© Breeze Systems 2020