Skip to content

Commit 041879a

Browse files
Update version and readme
1 parent db0f80b commit 041879a

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

obs-zoom-to-mouse.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
local obs = obslua
88
local ffi = require("ffi")
9-
local VERSION = "1.0"
9+
local VERSION = "1.0.1"
1010
local CROP_FILTER_NAME = "obs-zoom-to-mouse-crop"
1111

1212
local source_name = ""
@@ -1065,6 +1065,7 @@ function log_current_settings()
10651065
}
10661066

10671067
log("OBS Version: " .. string.format("%.1f", major))
1068+
log("Script Version: " .. VERSION)
10681069
log("Current settings:")
10691070
log(format_table(settings))
10701071
end

readme.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ I made this for my own use when recording videos as I wanted a way to zoom into
66

77
Built with OBS v29.1.3
88

9+
Now works on **Windows**, **Linux**, and **Mac**
10+
911
Inspired by [tryptech](https://github.com/tryptech)'s [obs-zoom-and-follow](https://github.com/tryptech/obs-zoom-and-follow)
1012

1113
## Example
@@ -105,14 +107,17 @@ I don't know of an easy way of getting these values automatically otherwise I wo
105107
Note: If you are also using a `transform crop` on the non-display capture source, you will need to manually convert it to a `Crop/Pad Filter` instead (the script has trouble trying to auto convert it for you for non-display sources).
106108

107109
## Known Limitations
108-
* Currently this script is only tested on **Windows**
109-
* Internally it uses [FFI](https://luajit.org/ext_ffi.html) to get the mouse position by loading the Win32 `GetCursorPos()` function
110-
* You can now try out support for **Linux** and **Mac** using the latest version of the script (they have their own [FFI](https://luajit.org/ext_ffi.html) defines for getting the mouse position)
111-
112110
* Only works on `Display Capture` sources (automatically)
113111
* In theory it should be able to work on window captures too, if there was a way to get the mouse position relative to that specific window
114112
* You can now enable the [`Show all sources`](#More-information-on-'Show-All-Sources') option to select a non-display capture source, but you MUST set manual source position values
115113

114+
* Using Linux:
115+
* You may need to install the [loopback package](https://obsproject.com/forum/threads/obs-no-display-screen-capture-option.156314/) to enable `XSHM` display capture sources. This source acts most like the ones used by Windows and Mac so the script can auto calculate sizes for you.
116+
* The script will also work with `Pipewire` sources, but you will need to enable `Allow any zoom source` and `Set manual source position` since the script cannot get the size by itself.
117+
118+
* Using Mac:
119+
* When using `Set manual source position` you may need to set the `Monitor Height` value as it is used to invert the Y coordinate of the mouse position so that it matches the values of Windows and Linux that the script expects.
120+
116121
## Development Setup
117122
* Clone this repo
118123
* Edit `obs-zoom-to-mouse.lua`

0 commit comments

Comments
 (0)