Add Zoom-to-Mouse Effects in OBS
Free alternative to Screen Studio using OBS Lua scripts to add dynamic zoom effects to your recordings.
Add Zoom-to-Mouse Effects in OBS
Paid tools like Screen Studio offer dynamic zoom effects during recording. You can achieve the same result for free using OBS Studio and a community Lua script. This guide works on Windows, Mac, and Linux.
๐ What Youโll Build
A zoom-to-mouse effect that:
- Automatically zooms into your cursor location during recording
- Follows mouse movement smoothly
- Can be toggled on/off with hotkeys
- Runs entirely in OBS (no external dependencies)
๐ ๏ธ Setup Steps
Step 1: Download the Script
- Visit GitHub: obs-zoom-to-mouse releases
- Download
obs-zoom-to-mouse.luafrom the Assets section
Step 2: Configure OBS Scene
- Launch OBS and create a new Scene
- Add a video source:
- Mac:
macOS Screen Capture - Windows:
Display Capture - Linux:
Screen Capture (XSHM)or similar
- Mac:
Note: Not all capture sources work with this script. Use the recommended source type for your OS.
Step 3: Load the Script
- Click Tools โ Scripts
- Click the + icon to add a script
- Select the
obs-zoom-to-mouse.luafile you downloaded - In the right panel, select your video source as the Zoom Source
- If your source doesnโt appear, click Refresh zoom sources
Step 4: Configure Settings
Default settings work well for most setups. To match professional results:
| Setting | Recommended Value |
|---|---|
| Zoom Level | 2.0 - 3.0x |
| Zoom Speed | 0.3 - 0.5s |
| Smooth Following | Enabled |
For Mac Retina Displays:
- Enable Set Manual Source Position
- Set
Scale XandScale Yto2 - Set
Monitor WidthandMonitor Heightto your screen resolution
Step 5: Configure Hotkeys
- Go to Settings โ Hotkeys
- Search for Toggle zoom to mouse
- Assign a hotkey (e.g.,
1for zoom toggle,2for follow toggle)
For Mac Global Hotkeys (Optional): This lets you use hotkeys even when OBS isnโt in focus.
- Open System Settings โ Privacy & Security
- Add OBS to Accessibility permissions
- Add OBS to Input Monitoring permissions
- Restart OBS for changes to take effect
Known issue: Global hotkeys may stop working after a few hours. Restart your computer to restore functionality.
๐ฏ Usage
- Press hotkey 1: Toggle zoom on/off
- Press hotkey 2: Toggle mouse-following during zoom
- Record normally: Zoom effects are captured automatically
๐ก Tips for Best Results
- Test before recording: Run through hotkeys in a test recording
- Use moderate zoom levels: 2-3x zoom looks professional; 5x+ can be jarring
- Enable smooth following: Jerky zoom detracts from content
- On Retina displays: Follow the Mac-specific configuration above
- Combine with other effects: Layer zoom with panning for more dynamic content