Resource icon

Zoom and Follow 0.1.0

Badr_Alamoudi

New Member

How to fix Some of OBS Zoom and follow mouse Script Errors

https://youtu.be/5qEI_2nq3Wc

dddd.jpg

Code:
[zoom_and_follow_mouse.py] Traceback (most recent call last):
[zoom_and_follow_mouse.py] File "C:\Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\zoom_and_follow_mouse.py", line 871, in <module>
[zoom_and_follow_mouse.py] zs = ZoomSettings(cwd, settings_dir, settings_file_name)
[zoom_and_follow_mouse.py] File "C:\Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\zoom_and_follow_mouse.py", line 81, in __init__
[zoom_and_follow_mouse.py] makedirs(self.file_dir)
[zoom_and_follow_mouse.py] File "C:\Users/xxx/AppData/Local/Programs/Python/Python310\lib\os.py", line 225, in makedirs
[zoom_and_follow_mouse.py] mkdir(name, mode)
[zoom_and_follow_mouse.py] PermissionError: [WinError 5] Access is denied: 'C:\\Program Files\\obs-studio\\data\\obs-plugins\\frontend-tools\\scripts\\settings'

No module Named 'pywinctl'

 

DataUser

New Member
Hello,

I'm getting these scripting errors.

[zoom_and_follow_mouse.py] File "C:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts/obs-zoom-and-follow-master\zoom_and_follow_mouse.py", line 1033
[zoom_and_follow_mouse.py] match(prop_name):
[zoom_and_follow_mouse.py] ^
[zoom_and_follow_mouse.py] SyntaxError: invalid syntax

Thanks,
 

albertocv

Member
I managed to make it work after updating to the latest Python version AND reinstalling the script.

But after I rebooted the PC, it doesn't work again. I tried with two screens and an external screen attached to my laptop.

I enabled the debug log. It doesn't report errors. It correctly detects zoom activity. But nothing is showing on screen.
 

mohdosala

New Member
Hey there,
I have solved all of the possible errors on OBS and had a hard time struggling with them.
Now I have a ridiculous problem that I can't find any reason for that
1700258559523.png

as you see in the picture above, when I open "Monitor Override" section, it doesn't recognize that I do HAVE a display!
and as the result,
when I leave that part blank and try to see if I can zoom, I see that it zooms on the very top left corner on the screen, till the size of the Display becomes "1px, 1px". and when hit on the zoom hotkey again, it gets back to the normal view. And also following the mouse cursor doesn't work.

I'm not really in need of "following the cursor" thing. If I could only zoom on the area my mouse cursor is right now and get back to the normal view, that would be enough for me.

But unfortunately, it's not working for me.
any ideas?
 

VGBC_P3rs0na

New Member
Does it actually work?
  • I have installed Python 3.7.9, and installed the two dependency Python packages as well (Pynput and Screeninfo).
  • I also made sure to point to the Python install folder path.
  • When I add the zoom_and_follow_mouse.py script into the script list in OBS, I get a statement that merely says "No properties available".
  • I can tell by looking at the zoom_and_follow_mouse.py file in a text editor that certainly are supposed to be a slew of properties.
Exactly. I need help too.
 
Top