BlankSourceCode / obs-zoom-to-mouse

An OBS lua script to zoom a display-capture source to focus on the mouse
178 stars 15 forks source link

Allow manual source selection #9

Closed BlankSourceCode closed 7 months ago

BlankSourceCode commented 7 months ago

This PR adds a new feature to allow users to select non-display capture sources.

A new Show all sources checkbox has been added to the settings. When enabled, this will update the Zoom Source dropdown with all sources (instead of only display-capture sources). The user is able to select one of these sources and the script will attempt to zoom it like it would with a regular display source.

It is important to note that the script is unable to auto calculate the size and position of non-display capture sources, so the user will (almost always) need to also enable the Set manual source position option and set the values for the area of the desktop that the source is displaying.

Another caveat is that the auto conversion of transform crop to Crop/Pad Filter usually doesn't work correctly, because OBS reports the wrong crop values for non-display capture sources (or I'm doing it wrong).

BlankSourceCode commented 7 months ago

This allows users to zoom into Source-Clone sources as mentioned in #3. But it will very likely require the user to set manual values so it's more of an advanced feature hidden behind this toggle.