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

dev-ramchander

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

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 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? If not, is there a current way to trigger preset saving via WebSocket?

Thanks in advance!
 
Top