Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Same issue as most users are having with the latest script #134

Open
gagansuie opened this issue Sep 28, 2023 · 9 comments
Open

Same issue as most users are having with the latest script #134

gagansuie opened this issue Sep 28, 2023 · 9 comments

Comments

@gagansuie
Copy link

If i uninstall and reinstall OBS (29.1.3) with the latest version of python (3.11), it will zoom in too much and i cant adjust it and follow doesn't work at all.

But if i install with python 3.10.9, nothing happens but logs do show up. :(

@bogdan-baerov
Copy link

bogdan-baerov commented Oct 2, 2023

Same here. Python 3.11, no errors, logs are ok, but the zoom and follow don't work (I double-checked everything).

After a system restart and a clean start of OBS, I have those logs. The "zoom" is always false, even if I toggle it always.
Untitled

Also, it crashed Streamer.Bot and OBS, not sure if it's from Python 3.11 or the plugin itself. Without those two it never crashed for me, so I assume it's one of the two.

@JaleSwiftpaw
Copy link

Same issue here. Script seems to run, but does nothing.
OBS 29.1.3 and Python 3.10.6.

[zoom_and_follow_mouse.py] Run script_unload
[zoom_and_follow_mouse.py] Updating Source List
[zoom_and_follow_mouse.py] New source: True
[zoom_and_follow_mouse.py] Update source size
[zoom_and_follow_mouse.py] self.source_name: Display Capture 5
[zoom_and_follow_mouse.py] Source loaded successfully: monitor_capture
[zoom_and_follow_mouse.py] Source Type: monitor_capture
[zoom_and_follow_mouse.py] Monitor Override: True
[zoom_and_follow_mouse.py] Updating stored dimensions to match monitor's dimensions
[zoom_and_follow_mouse.py] OLD
[zoom_and_follow_mouse.py] Width, Height, X, Y
[zoom_and_follow_mouse.py] 1920, 1080, -1920, 0
[zoom_and_follow_mouse.py] Scale: 1.0
[zoom_and_follow_mouse.py] NEW
[zoom_and_follow_mouse.py] Width, Height, X, Y
[zoom_and_follow_mouse.py] 1920, 1080, 0, 0
[zoom_and_follow_mouse.py] Triggered callback: Manual Monitor Override
[zoom_and_follow_mouse.py] Triggered callback: Manual Monitor Dim
[zoom_and_follow_mouse.py] Triggered callback: Manual Offset
[zoom_and_follow_mouse.py] Triggered callback: debug
[zoom_and_follow_mouse.py] Run script_properties
[zoom_and_follow_mouse.py] Updating Source List
[zoom_and_follow_mouse.py] New source: True
[zoom_and_follow_mouse.py] Updating Monitor List
[zoom_and_follow_mouse.py] Monitor override list updated
[zoom_and_follow_mouse.py] Zoom: False
[zoom_and_follow_mouse.py] Mouse position: Point(x=-472, y=727)
[zoom_and_follow_mouse.py] Zoom: True
[zoom_and_follow_mouse.py] Zoom: False
[zoom_and_follow_mouse.py] Mouse position: Point(x=-340, y=745)
[zoom_and_follow_mouse.py] Zoom: True

@gagansuie
Copy link
Author

gagansuie commented Oct 23, 2023

Same here. Python 3.11, no errors, logs are ok, but the zoom and follow don't work (I double-checked everything).

After a system restart and a clean start of OBS, I have those logs. The "zoom" is always false, even if I toggle it always.
Untitled

Also, it crashed Streamer.Bot and OBS, not sure if it's from Python 3.11 or the plugin itself. Without those two it never crashed for me, so I assume it's one of the two.

I figured it out. Basically this script is very fragile. What worked for me was once you get those logs appearing,
-try switching to Windows capture and running it, -then toggle back to display capture,
-restart OBS.
-make sure you have your hotkeys set as well.
-if all else fails, restart your machine, try the steps again.
-if know, it's madness. 🙃
-ill see if I can find the python install script I ran, maybe that helped.

Latest version of python and OBS btw.

Here's proof.

https://youtube.com/shorts/h2mYo4NX5T0?si=_s2flbQaPoBimAlt

@CrepusularLIGHT
Copy link

I am having the same issues as the others. I am using Python 3.11.6.
The 'zoom' feature zooms into the very top-left of the screen to 46px x 46px and does not 'follow' the mouse as it is supposed to.

After trying gagansuie's method it is working for me.

HOW I FIXED IT:
Tools > Scripts
Change 'Zoom Source' from a Window Capture Source to a Display Capture Source (and back again as necessary).

  • What does this mean?

OBS has 'Sources' that you select to display. I switched from a Display Capture Source to a Window Capture Source, and back again, and this actually fixed my problem. So my suggestion do what he said and play with the settings and don't be afraid to restart your PC. I got both the 'zoom' and 'follow' functions to work after following his advice!

@gagansuie
Copy link
Author

I am having the same issues as the others. I am using Python 3.11.6.
The 'zoom' feature zooms into the very top-left of the screen to 46px x 46px and does not 'follow' the mouse as it is supposed to.

After trying gagansuie's method it is working for me.

HOW I FIXED IT:
Tools > Scripts
Change 'Zoom Source' from a Window Capture Source to a Display Capture Source (and back again as necessary).

  • What does this mean?

OBS has 'Sources' that you select to display. I switched from a Display Capture Source to a Window Capture Source, and back again, and this actually fixed my problem. So my suggestion do what he said and play with the settings and don't be afraid to restart your PC. I got both the 'zoom' and 'follow' functions to work after following his advice!

Holy moly! That's freaking awesome! I'm really happy someone was able to reproduce the fix!

@JaleSwiftpaw
Copy link

JaleSwiftpaw commented Nov 5, 2023

I am having the same issues as the others. I am using Python 3.11.6. The 'zoom' feature zooms into the very top-left of the screen to 46px x 46px and does not 'follow' the mouse as it is supposed to.

After trying gagansuie's method it is working for me.

HOW I FIXED IT: Tools > Scripts Change 'Zoom Source' from a Window Capture Source to a Display Capture Source (and back again as necessary).

* What does this mean?

OBS has 'Sources' that you select to display. I switched from a Display Capture Source to a Window Capture Source, and back again, and this actually fixed my problem. So my suggestion do what he said and play with the settings and don't be afraid to restart your PC. I got both the 'zoom' and 'follow' functions to work after following his advice!

This didn't work for me, unfortunately. Could having multiple monitors enabled be the issue? I haven't tested with single monitor.

@davidvkimball
Copy link

I am having the same issues as the others. I am using Python 3.11.6. The 'zoom' feature zooms into the very top-left of the screen to 46px x 46px and does not 'follow' the mouse as it is supposed to.

After trying gagansuie's method it is working for me.

HOW I FIXED IT: Tools > Scripts Change 'Zoom Source' from a Window Capture Source to a Display Capture Source (and back again as necessary).

* What does this mean?

OBS has 'Sources' that you select to display. I switched from a Display Capture Source to a Window Capture Source, and back again, and this actually fixed my problem. So my suggestion do what he said and play with the settings and don't be afraid to restart your PC. I got both the 'zoom' and 'follow' functions to work after following his advice!

I'm really happy this worked for you! Sadly it did not work for me. Any other ideas?

@Danie10
Copy link

Danie10 commented Feb 14, 2024

@davidvkimball I gave up on this scrip after struggling for months. What did work for me was this other one inspired by this script - it worked out of the box and is fulfilling my basic zoom and follow requirements - https://github.com/BlankSourceCode/obs-zoom-to-mouse.

Hopefully someone can learn why that one is working.

@davidvkimball
Copy link

@davidvkimball I gave up on this scrip after struggling for months. What did work for me was this other one inspired by this script - it worked out of the box and is fulfilling my basic zoom and follow requirements - https://github.com/BlankSourceCode/obs-zoom-to-mouse.

Hopefully someone can learn why that one is working.

@Danie10 thank you so much, this script is great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants