Resource icon

OBS Lua Zoom to Mouse 1.0.1

Reviews 4.17 star(s) 21 reviews

Works great BUT did stop working after updating to OBS 32 (Windows, 64 Bit). HOWEVER I can confirm that the fix posted by @havesomejoe below does work in OBS 32.0.4!

To reiterate, you need to go into the script and edit the following entries:

"obs_sceneitem_get_info" to "obs_sceneitem_get_info2" (3 instances)
"obs_sceneitem_set_info" to "obs_sceneitem_set_info2" (1 instance)

Doing this didn't work for me at first when I edited the script through OBS > Tools > Edit Script. But it did work when I completely removed the script from OBS and edited the file separately. Just remember to take a screenshot of your original settings before this so you remember what you had.

I also had to rebind my hotkeys but, other than that slight hiccup, everything seems to work as it did prior to updating!
Have been using for a while after seeing Nutty's tutorial. Brilliant plugin! OBS 32 broke it for me but havesomejoe's post in this thread fixed it instantly.
Completely broken on Linux with Wayland, does not show any display sources, and even if you check "allow any zoom source" it won't follow the mouse. nobody seems to care about fixing it either
Works great. FYI to anyone struggling: The script is using two functions that were deprecated.

Edit the script and change:

obs_sceneitem_get_info → obs_sceneitem_get_info2 (3 occurrences)
obs_sceneitem_set_info → obs_sceneitem_set_info2 (1 occurrence)
This script was amazing when it was working. A recent update to OBS has broken the code. I hope whoever made this sees these reviews and can fix it soon.
This is a great plugin making it possible to see text from apps with horrible font size. Not just for the streaming audience, but for myself too by putting up a obs preview on another screen. One problem is that it just seem to work on the main screen.

After updating obs today I get this: "[obs-zoom-to-mouse.lua] Failed to call frontend_event_callback for frontend API: [string "C:/VIDEO/obs-studio/data/obs-plugins/frontend..."]:560: attempt to call field 'obs_sceneitem_get_info' (a nil value)"
The zoom function doesn't work on macOS. Even after selecting MacBook Display and configuring a hotkey, no zoom occurs.
This is a great scripting tool, it would be even better if it could automatically follow the mouse to zoom in and out! Instead of using shortcut keys to trigger now, because using shortcut keys to trigger always feels like the operation is still troublesome! Thank you to the developers for sharing
Doing nothing on hotkey. Settings made according to github recomendations. OBS 30.2.0
This is exactly what I was looking for my next project. Thank you so much.

It works flawlessly.
Doesn't work. I load it on OBS 30 running on a fresh install of Ubuntu 24. Seems to load OK, but when I try to select a source in "Zoom Source" there are no sources listed?
Truly awesome! Been waiting for something like this for a while. I would love to be able to set it up for multiple monitors natively. My current work around is to duplicate and rename the script then add it again, and add the same shortcut for both screens in the OBS settings. Thx!
It just works like a charm. Super easy to set up and zooms as expected. Thank you very much for this script. Using: macos 14.4.1 + OBS 30.1.2
Also coming over from the Python Script, thanks to Andilippi!
As others mentioned, i had the Python script to mousezoom in mind that to implement i failed and now i wanted to give it a new try.
Big surprise! Foolproof implementation, smooth functioning, very easy to configure! Excellent!
Works great, no prerequisites, no crashing. Thank you!
This works flawlessly, very helpful for teaching and making videos
First: the script run at MacOs and I'm so happy to find a easy to install and easy to understand Zoom. My envirement needs to check: Allow all resources - without it doen't found any Display Capture. Many thanks for these great help for my stream and recording. Many thanks for your work and to share this script with us!
Been struggling for months with the Python based OBS Zoom and Follow Mouse script. This one is working flawlessly on Manjaro Linux with my multiple monitor setup.
It's way more easy to install and use than the other script that uses python. The only caveat is the display capture keeps blinking every time I switch scenes from one that does not have the display capture active. Hope it gets fixed soon.
B
BlankSourceCode
This issue is now fixed on the latest version! Thanks for the help tracking it down.
Back
Top