This python script uses OBS websocket API to automatically adjust the position of the Display Capture source to follow the active window. When the active window is wider than the window, the script will 'split' the window into three zones and will snap to the nearest zone.
pip install -r requirements.txt
OBS > Tools > Websocket Server Settings > Enable Websocket Server
- Open obs-autofollow.py >
#Configuration
- Set targetHeight, targetWidth == OBS canvas size
- Port == port
- Password == password
python obs_autofollow.py