vwout / obs-visca-control

OBS plugin to control Visca-over-IP based cameras
https://obsproject.com/forum/resources/control-visca-over-ip-based-cameras.1173/
GNU General Public License v3.0
35 stars 6 forks source link

Modify camera moving speed #6

Closed PoWeR-Ding closed 1 year ago

PoWeR-Ding commented 1 year ago

@vwout How have you been?

I hope to have two shortcut keys to increase and decrease the camera's moving speed.

vwout commented 1 year ago

Hi @PoWeR-Ding,

Which moving speed are you referring to? The speed of moves triggered by another shortcut key? And in that case, do you want to dynamically change the moving speed, or change the default (hard coded) moving speed for short-cut operations?

PoWeR-Ding commented 1 year ago

@vwout change the default (hard coded) moving speed for short-cut operations~

PoWeR-Ding commented 1 year ago

@vwout Incremental type,each press will carry out a value of +1 or - 1.

PoWeR-Ding commented 1 year ago

@vwout I mainly mean "actions.PanTilt" speed !! 微信截图_20221022115959

vwout commented 1 year ago

Could you please test HEAD? I added pan/tilt and zoom/focus speeds to the camera settings in the script settings, so the values are no longer hard-coded. These values can be modified by shortcuts than can be configured in OBS settings.

PoWeR-Ding commented 1 year ago

👍I can cooperate in the test. But I don't know what HEAD is.

😆I added functions by studying your code And the test has taken effect..

微信截图_20221024085559

PoWeR-Ding commented 1 year ago

Test VISCA message?

微信截图_20221024100421

vwout commented 1 year ago

Hi @PoWeR-Ding, HEAD is the latest revision of a git repo, since you build OBS yourself, I guessed you were familiar with the term.

To test the changes I applied, download the sources (https://github.com/vwout/obs-visca-control/archive/refs/heads/main.zip) and copy libvisca.lua, ljsocket.lua and obs-visca-control.lua to the location where you installed this script plugin for OBS.

When you start OBS (or reload the script in OBS), you should see sliders with each camera in the script settings section and the ability to assign a hotkey in the OBS settings.

PoWeR-Ding commented 1 year ago

@vwout

🙉 🙊You are really "awesome". Let me test it.👏 👏

微信图片_20221024142506

微信图片_20221024142502

PoWeR-Ding commented 1 year ago

@vwout

Can Brightness and ColorSaturation also be added? please please😟😟

微信截图_20221024144902