Control OBS from inside a Godot game or app.
APACHE-2.0 License
A Godot addon to interact with obs-websocket. Tested on Godot 4.0.2.
addons/obs-websocket-gd/obs_websocket.gd
node to your scenelocalhost:4455
with a password of password
. Change the password in addons/obs_websocket_gd/obs_websocket.gd
to the password set in step 2. The variables are exported for conveniencedata_received(update_data)
signal in obs_websocket.gd
. data_received
outputs an ObsMessage
data structure. This data structure stores the raw response and also maps the data to the expected OpCode fields.establish_connection()
on the obs_websocket.gd
node to connect to obs-websocket. The connection_established
, connection_authenticated
, and connection_closed
signals are available to connect tosend_command(command: String, data: Dictionary = {})
method on the obs_websocket.gd
instance. Reference the obs-websocket protocol to find out what commands + data to send.