Coder Social home page Coder Social logo

upgradeq / obs-studio-cursor-skin Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 5.0 71 KB

Various cursors to be rendered inside OBS

Home Page: https://obsproject.com/forum/resources/obs-studio-mouse-cursor-skin.1010/

License: MIT License

Python 14.01% HTML 2.08% JavaScript 28.11% Lua 35.68% HLSL 20.12%
cursor highlight javascript mouse obs obs-script obs-scripts obs-studio pointer python shaders trail zoom

obs-studio-cursor-skin's People

Contributors

34700 avatar upgradeq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

obs-studio-cursor-skin's Issues

How to use?

Hi,

please specify python version requirements if any. I have installed latest python today and also did pip install mouse. I don't see any source / settings to use this script.

Please help how to use it in obs

Question about multiple monitors

I'm currently a user of Advanced Scene Switcher, allowing me to automatically switch the scene/screen being shown based on the current cursor position.

This script's current behavior (by design) only shows the cursor highlight when my primary display (scene) is being shown.
It would be cool if we could support multiple monitors.

Multiple monitors setup will not work.

Does this implies it's impossible to make it work? Or just very hard and the idea was abandoned?
I can already foresee the complexity of calculating relative scene position from X,Y mouse coordinates when hovering above other monitors. What are the difficulties I'm not seeing for developing this feature?

Custom cursor

cursor_shader.lua is working nicely, but I want to change from the default one to my cursor of choice. Is that possible? I asked an AI to assist me, but all of them didn't work. Just to clarify, I tried to change into a static image, which is .png extension.

Offset is "scaled"

When moving the mouse on X axis, the offset seems to be scaled:

Peek.02-07-2021.15-11.mp4

I don't have this issue on Y axis.

Very "easy" and "working" installation

C:\Program Files\obs-studio\OBS-Studio-Cursor-skin-2.3.0>mouse_skin_obs.py
Traceback (most recent call last):
File "C:\Program Files\obs-studio\OBS-Studio-Cursor-skin-2.3.0\mouse_skin_obs.py", line 1, in
import obspython as S # studio
ModuleNotFoundError: No module named 'obspython'

C:\Program Files\obs-studio\OBS-Studio-Cursor-skin-2.3.0>python -m pip install obspython
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
ERROR: Could not find a version that satisfies the requirement obspython (from versions: none)
ERROR: No matching distribution found for obspython

C:\Program Files\obs-studio\OBS-Studio-Cursor-skin-2.3.0>py -0
Installed Pythons found by py Launcher for Windows
-3.10-64 *

Cursor on top of image

Hi!
Is there a way to capture a cursor on top of an image? The added image colors the cursor, I'd like to avoid this.

image

No module named 'pynput'

It throw the exception" No module named 'pynput' ", even though I've installed this module.

[mouse_skin_obs.py] Traceback (most recent call last):
[mouse_skin_obs.py] File "D:/Program Files/obs-studio/data/obs-plugins/frontend-tools/scripts\mouse_skin_obs.py", line 2, in
[mouse_skin_obs.py] from pynput.mouse import Controller # python -m pip install pynput
[mouse_skin_obs.py] ModuleNotFoundError: No module named 'pynput'

The 'base width' value is overwritten by the 'base height', and the 'base height' value cannot be changed.

py_cursor.width = S.obs_data_get_int(settings, "_width")
py_cursor.width = S.obs_data_get_int(settings, "_height")

I found this problem while trying to change the default setting of 1920 x 1080 to 2560 x 1440.
Code #229 of the mouse_skin_obs.py file had to put a value in py_cursor.height, and after this modification, it worked normally on my 2k monitor.

Mouse pointer offset.

Nice script but some issues needs to be resolved before it can be used.

The image and cursor have large offset. I am using two monitors/display. I am capturing my second display. But image follows the mouse pointer only on primary display and that too with large offset.

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.