[Python] PTZ Controls Plugin – SavePTZPreset not recognized over WebSocket v5 (code 204)

Discussão em 'Python' iniciado por Stack, Junho 13, 2025.

  1. Stack

    Stack Membro Participativo

    I'm integrating OBS with Python using the obsws-python SDK (WebSocket v5), and trying to call a PTZ plugin request like the following:


    from obsws_python import ReqClient
    ...

    client = ReqClient(host='localhost', port=4458, password='',
    response = client.send("SavePTZPreset", {
    "sourceName": "camtest",
    "presetName": "test-scene"
    }, raw=True)



    This returns:


    OBSSDKRequestError: Request SavePTZPreset returned code 204. With the message: Your request type is not valid.
    ​

    I’m using the PTZ Controls plugin and was hoping to save presets programmatically. Is SavePTZPreset no longer supported in v5?

    Continue reading...

Compartilhe esta Página