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

Improved auto start and force 16:9 aspect ratio features #37

Open angeldeejay opened 1 month ago

angeldeejay commented 1 month ago

Added new features:

BlankSourceCode commented 1 month ago

@angeldeejay Thanks for the PR!

Would it be possible to (either automatically by grabbing info from OBS or manually via textboxes) allow different output aspect ratios rather than just a single toggle for 16:9? I'm pretty sure it would then also fix #31 and #30.

The auto-zoom toggle may be able to fix #36 if it saves/restores the state based on the scene but that seems like a bit of a stretch goal.

angeldeejay commented 1 month ago

@angeldeejay Thanks for the PR!

Would it be possible to (either automatically by grabbing info from OBS or manually via textboxes) allow different output aspect ratios rather than just a single toggle for 16:9? I'm pretty sure it would then also fix #31 and #30.

The auto-zoom toggle may be able to fix #36 if it saves/restores the state based on the scene but that seems like a bit of a stretch goal.

The "auto-zoom" feature I've implemented, just starts the script with OBS (without using key shortcut or anything). I've found it useful in cases when you need the zoom always active. I t not pretends to fix #36.

About the aspect ratios feature: this is an initial workaround to maintain proportions on ultrawide screens. The future goal should use the original aspect ratio from the source/device the script is trying to zoom in and adjust according to it, but I'm not able to implement something with that complexity right now due to I'm busy. (Sorry 😔).