obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.86k stars 707 forks source link

SetTbarPostion Problems #1211

Open gevorg-tsat opened 6 months ago

gevorg-tsat commented 6 months ago

Operating System Info

Other

Other OS

mac os 14.3.1

OBS Studio Version

Other

OBS Studio Version (Other)

30.0.2

obs-websocket Version

5.1.0

OBS Studio Log URL

https://obsproject.com/logs/qkqFUfDy0t993Iy2

OBS Studio Crash Log URL

No response

Expected Behavior

need some help c SetTBarPosition. it doesnt work as i want, explain me please

so, when i send any position to obs, it works for microsecond and go back to its start position

then i noticed that SetTBarPosition works well when i make TBar "active". it's active when i move it anywhere and when Transition button looks inactive (as u can see on first screenshot) but when Transition button is active(second screenshot), it again works for microsecond and go back to its start position. i dont want to move it manually all the time to make tbar "active".

image image

Current Behavior

explained above

Steps to Reproduce

my golang code sample: goobs v1.2.3

_, err := obsClient.Transitions.SetTBarPosition(&transitions.SetTBarPositionParams{
        Position: &s.Position, // == 0.5
        Release:  &s.Release, //==true
    })
    if err != nil {
        logger.Info("Error occurred while setting TBar postion", zap.Error(err))
    }

Anything else we should know?

No response

AVRC commented 4 months ago

I have this exact issue and symptoms on Windows, OBS version 31.1.2(64 bit) The command is accepted and returns code 100 but nothing happens unless I first move the T-Bar with my mouse off the left position.

11:54:37.970: [obs-websocket] [debug] [WebSocketServer::onMessage] Incoming message (decoded): 11:54:37.970: { 11:54:37.970: "d": { 11:54:37.970: "requestData": { 11:54:37.970: "position": 0.45, 11:54:37.970: "release": true 11:54:37.970: }, 11:54:37.970: "requestId": "mzyqLKSU5u6oRCsa", 11:54:37.970: "requestType": "SetTBarPosition" 11:54:37.970: }, 11:54:37.970: "op": 6 11:54:37.970: } 11:54:37.971: [obs-websocket] [debug] [WebSocketServer::onMessage] Outgoing message: 11:54:37.971: { 11:54:37.971: "d": { 11:54:37.971: "requestId": "mzyqLKSU5u6oRCsa", 11:54:37.971: "requestStatus": { 11:54:37.971: "code": 100, 11:54:37.971: "result": true 11:54:37.971: }, 11:54:37.971: "requestType": "SetTBarPosition" 11:54:37.971: }, 11:54:37.971: "op": 7 11:54:37.971: }

Armandur commented 2 weeks ago

Same problem here using OBS Studio 30.2.3 64bit on windows, nothing happens until I slide the t-bar a bit manually.

I was really hoping for this to work to implement at physical t-bar using an arduino.

BUG:obsws_python.baseclient.ObsClient:Sending request {'op': 6, 'd': {'requestType': 'SetTBarPosition', 'requestId': 735, 'requestData': {'position': 0.8, 'release': True}}} DEBUG:obsws_python.baseclient.ObsClient:Response received {'d': {'requestId': 735, 'requestStatus': {'code': 100, 'result': True}, 'requestType': 'SetTBarPosition'}, 'op': 7} DEBUG:obsws_python.baseclient.ObsClient:Sending request {'op': 6, 'd': {'requestType': 'SetTBarPosition', 'requestId': 997, 'requestData': {'position': 0.9, 'release': True}}} DEBUG:obsws_python.baseclient.ObsClient:Response received {'d': {'requestId': 997, 'requestStatus': {'code': 100, 'result': True}, 'requestType': 'SetTBarPosition'}, 'op': 7} DEBUG:obsws_python.baseclient.ObsClient:Sending request {'op': 6, 'd': {'requestType': 'SetTBarPosition', 'requestId': 513, 'requestData': {'position': 1.0, 'release': True}}} DEBUG:obsws_python.baseclient.ObsClient:Response received {'d': {'requestId': 513, 'requestStatus': {'code': 100, 'result': True}, 'requestType': 'SetTBarPosition'}, 'op': 7} DEBUG:obsws_python.baseclient.ObsClient:Sending request {'op': 6, 'd': {'requestType': 'SetTBarPosition', 'requestId': 370, 'requestData': {'position': 1.0, 'release': True}}} DEBUG:obsws_python.baseclient.ObsClient:Response received {'d': {'requestId': 370, 'requestStatus': {'code': 100, 'result': True}, 'requestType': 'SetTBarPosition'}, 'op': 7} DEBUG:obsws_python.baseclient.ObsClient:Sending request {'op': 6, 'd': {'requestType': 'SetTBarPosition', 'requestId': 75, 'requestData': {'position': 0.9, 'release': True}}} DEBUG:obsws_python.baseclient.ObsClient:Response received {'d': {'requestId': 75, 'requestStatus': {'code': 100, 'result': True}, 'requestType': 'SetTBarPosition'}, 'op': 7} DEBUG:obsws_python.baseclient.ObsClient:Sending request {'op': 6, 'd': {'requestType': 'SetTBarPosition', 'requestId': 600, 'requestData': {'position': 0.8, 'release': True}}} DEBUG:obsws_python.baseclient.ObsClient:Response received {'d': {'requestId': 600, 'requestStatus': {'code': 100, 'result': True}, 'requestType': 'SetTBarPosition'}, 'op': 7}

DEBUG:obsws_python.baseclient.ObsClient:Sending request {'op': 6, 'd': {'requestType': 'SetTBarPosition', 'requestId': 781, 'requestData': {'position': 0.9, 'release': False}}} DEBUG:obsws_python.baseclient.ObsClient:Response received {'d': {'requestId': 781, 'requestStatus': {'code': 100, 'result': True}, 'requestType': 'SetTBarPosition'}, 'op': 7} DEBUG:obsws_python.baseclient.ObsClient:Sending request {'op': 6, 'd': {'requestType': 'SetTBarPosition', 'requestId': 54, 'requestData': {'position': 1.0, 'release': False}}} DEBUG:obsws_python.baseclient.ObsClient:Response received {'d': {'requestId': 54, 'requestStatus': {'code': 100, 'result': True}, 'requestType': 'SetTBarPosition'}, 'op': 7} DEBUG:obsws_python.baseclient.ObsClient:Sending request {'op': 6, 'd': {'requestType': 'SetTBarPosition', 'requestId': 377, 'requestData': {'position': 1.0, 'release': False}}} DEBUG:obsws_python.baseclient.ObsClient:Response received {'d': {'requestId': 377, 'requestStatus': {'code': 100, 'result': True}, 'requestType': 'SetTBarPosition'}, 'op': 7} DEBUG:obsws_python.baseclient.ObsClient:Sending request {'op': 6, 'd': {'requestType': 'SetTBarPosition', 'requestId': 327, 'requestData': {'position': 0.9, 'release': False}}} DEBUG:obsws_python.baseclient.ObsClient:Response received {'d': {'requestId': 327, 'requestStatus': {'code': 100, 'result': True}, 'requestType': 'SetTBarPosition'}, 'op': 7} DEBUG:obsws_python.baseclient.ObsClient:Sending request {'op': 6, 'd': {'requestType': 'SetTBarPosition', 'requestId': 38, 'requestData': {'position': 0.8, 'release': False}}} DEBUG:obsws_python.baseclient.ObsClient:Response received {'d': {'requestId': 38, 'requestStatus': {'code': 100, 'result': True}, 'requestType': 'SetTBarPosition'}, 'op': 7}