Giter Club home page Giter Club logo

obs-zoom-and-follow's Introduction

This script is not being actively maintained. Please contact me if you want to take over maintenance.

I no longer stream regularly and do not find myself with the free time to do the necessary refactor to address existing issues. Please use BlankSourceCode's lua script to achieve similar functionality. It only supports desktop capture, but works cross-platform, has basic dual machine support, and does not require you to setup Python or any dependencies.


Zoom and Follow

Have you ever needed to zoom in on your screen to show some fine detail work, or to make your large 4k/ultrawide monitor appear less daunting on stream? Zoom and Follow for OBS Studio does exactly that, zooms in on your mouse and follows it around. Configurable and low-impact, you can now do old school Camtasia zoom live!

Maintained for the current release version of OBS

Built using Python 3.10

Inspired by caharkness's Magic Window

Last updated: 2023 September 14

Dependencies

Install

  • Install Python 3

    Make sure that you configure the correct version of Python within OBS in the "Scripts" window > "Python Settings" tab

  • Install requirements

    python -m pip install -r requirements.txt

    or

    python3 -m pip install -r requirements.txt

  • Add zoom_and_follow_mouse.py as an OBS script

Note: I will not provide support on how to install Python or any dependencies as each system and platform is different. I am only set up to test on the current versions of Windows 11 and Apple Silicon-based macOS and can only guarantee compatibility with the latest version of OBS on the latest version of each OS.

How to Use

  1. In the "Tools > Scripts" Menu of OBS
    • Select a source to zoom into as part of the script settings
    • Configure the size of the zoom window
    • Change any of the other settings to adjust the zoom and follow behavior (Optional)
  2. In the "Settings > Hotkeys" Menu of OBS
    • Setup a hotkey for Enable/Disable Mouse Zoom
    • Setup a hotkey for Enable/Disable Mouse Follow
  3. Use Zoom hotkey to zoom in and out of the source
    • Optionally, use the Follow hotkey to toggle mouse tracking
  4. Adjust Source Bounding Box Type, Alignment, and Size to preference

Setting up zoom control for multiple sources

Duplicate and rename zoom_and_follow_mouse.py, and repeat the Install and How to Use sections with the duplicate copy.

To Do

  • Only track windows/games when they are the active window
  • Re-implement window tracking on macOS
  • Proper testing on Linux (X11/Wayland/etc.) Looking for Linux maintainers

obs-zoom-and-follow's People

Contributors

tryptech avatar rvillani avatar bpatram avatar gnu-lorien avatar conner-pys avatar basnetsagar0 avatar upgradeq avatar riyasvaliyadan avatar marckopop avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.