|
| 1 | +--- |
| 2 | +title: Level Up OBS Recordings with Zoom-to-Mouse |
| 3 | +description: Enhance your recordings and presentations with dynamic zoom effects. |
| 4 | +heroImage: https://images.unsplash.com/photo-1532518171289-5e46a269e127?q=80&w=2952&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D |
| 5 | +pubDate: 2025-01-03 |
| 6 | +tags: |
| 7 | + - other |
| 8 | +--- |
| 9 | + |
| 10 | +import Video from '@/components/Video' |
| 11 | + |
| 12 | +## Introduction |
| 13 | + |
| 14 | +Want to make your recordings more dynamic and engaging? Check out the video below to see the zoom-to-mouse effect in action |
| 15 | + |
| 16 | +<Video |
| 17 | + src='https://res.cloudinary.com/dj1jdtddj/video/upload/v1735908341/Video_ekj6op.mp4' |
| 18 | + poster='https://res.cloudinary.com/dj1jdtddj/image/upload/v1735906741/4ea8c3d8-7cf9-4c03-9d9e-bb39627a94e3.png' |
| 19 | + client:only='react' |
| 20 | +/> |
| 21 | + |
| 22 | +While paid tools like [Screen Studio](https://screen.studio/) offer this capability, what if you could achieve the same effect for free? The good news is that you can, using OBS Studio! |
| 23 | + |
| 24 | +In this guide, I'll walk you through the steps to set up zoom-to-mouse functionality. These instructions have been tested on Windows and Mac, and the process should be quite similar for Linux users. |
| 25 | + |
| 26 | +## 1. Download the Magical Script |
| 27 | + |
| 28 | +To get started, you’ll need to download the script that enables the zoom-to-mouse functionality in OBS Studio |
| 29 | + |
| 30 | +- Open this [link](https://github.com/BlankSourceCode/obs-zoom-to-mouse/releases/tag/v1.0.1). |
| 31 | +- In the _Assets_ section, click to download the `obs-zoom-to-mouse.lua` file. |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +## 2. Set Up Your OBS Screen |
| 36 | + |
| 37 | +Now that you have the script, let’s set up your OBS scene: |
| 38 | + |
| 39 | +- Launch OBS. |
| 40 | +- Add a **New Scene** by clicking the **+** button under the _Scenes_ section. |
| 41 | +- Next, add a **New Source**: |
| 42 | + - On **Mac**, select `macOS Screen Capture` as the source. |
| 43 | + - On **Windows**, choose `Display Capture` as the source. |
| 44 | + |
| 45 | +Important: Not all sources work with this script, so ensure you pick the right one. |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +## 3. Setup the zoom to mouse script |
| 50 | + |
| 51 | +Now let’s connect the script to your scene: |
| 52 | + |
| 53 | +- Click **Tools** in the top menu bar. |
| 54 | +- Select **Scripts** from the dropdown. |
| 55 | +- In the _Scripts_ tab, click the plus icon (+) to add the `obs-zoom-to-mouse.lua` script. |
| 56 | +- On the right side, you’ll see configuration options. Choose the **Zoom Source** you created earlier (if you can’t find it, click _Refresh zoom sources_). |
| 57 | + |
| 58 | +You can adjust the configuration to your liking, but to match the result from my video, here’s the setup: |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +**Tip for Mac Retina Displays**: If you're on a Mac with a retina display, you might experience some weird behavior with zoom-to-mouse. To fix this, check the option for **Set Manual Source Position** and refer to the [issue discussion](https://github.com/BlankSourceCode/obs-zoom-to-mouse/issues/24) for more details. |
| 63 | + |
| 64 | +For a smoother experience on Retina displays, you can adjust the `Scale X` and `Scale Y` to `2`, and make sure to set the `Monitor Width` and `Monitor Height` based on your screen resolution. Here's my configuration for reference: |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | +## 4. Setup OBS Hotkey |
| 69 | + |
| 70 | +To control the zoom-to-mouse functionality, you’ll need to configure some hotkeys: |
| 71 | + |
| 72 | +- Go to **Settings** in OBS. |
| 73 | +- Navigate to the **Hotkeys** section in the left sidebar. |
| 74 | +- Search for **Toggle zoom to mouse** and **Toggle follow mouse during zoom**. |
| 75 | +- Assign your preferred hotkeys (I recommend `1` and `2` for easy access). |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | +### Setup Global Hotkeys (Mac Only) |
| 80 | + |
| 81 | +For now the hotkeys are only active when OBS is in focus. If you want to use the hotkeys while working in other applications, you need to set up global hotkeys: |
| 82 | + |
| 83 | +- Enable Accessibility Permissions |
| 84 | + |
| 85 | + - Open **System Settings**. |
| 86 | + - Navigate to **Privacy & Security** in the sidebar. |
| 87 | + - Click on **Accessibility**. |
| 88 | + - Add OBS to the list of apps that can control your computer. |
| 89 | + - Toggle the switch to enable the app. |
| 90 | + |
| 91 | +- Allow Input Monitoring |
| 92 | + |
| 93 | + - Back in the **Privacy & Security** tab, select **Input Monitoring**. |
| 94 | + - Add OBS to the list of apps that can monitor input. |
| 95 | + - Toggle the switch to enable the app. |
| 96 | + |
| 97 | +**Please note**: There is a known issue where this configuration may only work for a few hours. If you encounter this, try restarting your computer to restore functionality. You can read more about this issue [here](https://github.com/obsproject/obs-studio/issues/4126#issuecomment-1960956749). |
| 98 | + |
| 99 | +## And That’s It! |
| 100 | + |
| 101 | +Now you're ready to use the zoom-to-mouse functionality in OBS Studio. Simply press '1' to zoom in and out, and '2' to toggle the zoom following your mouse. This feature can help make your tutorials, presentations, or streams more engaging. |
0 commit comments