Repository navigation
Reference Script Functions Obsbot
Also on the Cuebot Docs site.
Functions for C# (Cb.Call) and Python (cb.call). See Script functions for how to use them.
Starts connecting to OBSBOT Center. Cuebot keeps trying in the background until it works.
Gives back: true once connecting has started.
C#
var answer = await Cb.Call("obsbot.connect");Python
answer = cb.call("obsbot.connect")Disconnects Cuebot from OBSBOT Center.
Gives back: true when done.
C#
var answer = await Cb.Call("obsbot.disconnect");Python
answer = cb.call("obsbot.disconnect")Asks your OBSBOT camera for its current settings, like zoom and where it is pointing.
Gives back: Values named obsbot.deviceIndex, obsbot.deviceName, obsbot.awake, obsbot.zoom, obsbot.fov, obsbot.pitch, obsbot.yaw, obsbot.aiLocked, obsbot.autoFraming, obsbot.deviceCount and obsbot.preset1.exists / .name (and 2, 3).
C#
var answer = await Cb.Call("obsbot.getState");Python
answer = cb.call("obsbot.getState")Checks whether Cuebot can reach your OBSBOT camera (through OBSBOT Center) right now.
Gives back: true while OBSBOT Center answers, otherwise false.
C#
var answer = await Cb.Call("obsbot.isConnected");Python
answer = cb.call("obsbot.isConnected")Sends any raw OSC message to OBSBOT Center. For advanced users who know OBSBOT's OSC addresses.
| Value | What to put in |
|---|---|
address |
The OSC address, like "/OBSBOT/WebCam/General/SetZoom". Needed. |
args |
Optional. A list of values to send with it, like [50]. |
Gives back: true when sent.
C#
var answer = await Cb.Call("obsbot.send", new { address = "/OBSBOT/WebCam/General/SetZoom", args = new object?[] { 50 } });Python
answer = cb.call("obsbot.send", address="/OBSBOT/WebCam/General/SetZoom", args=[50])Points your OBSBOT camera in a direction. Numbers past the camera's limit are cut down to the limit.
| Value | What to put in |
|---|---|
pan |
Optional. Left/right in degrees, -129 to 129 (a Tail 2 reached directly: -159 to 159). Default 0 (straight ahead). |
pitch |
Optional. Up/down in degrees, -59 to 59 (a Tail 2 reached directly: -62 to 62). Default 0. |
speed |
Optional. How fast it turns, 0 to 90. Default 50. |
device |
Optional. Which camera in OBSBOT Center, 1 to 4. Leave it out for the selected one. |
Gives back: true when sent.
C#
var answer = await Cb.Call("obsbot.setGimbal", new { pan = 30, pitch = -10, speed = 40 });Python
answer = cb.call("obsbot.setGimbal", pan=30, pitch=-10, speed=40)Zooms your OBSBOT camera in or out.
| Value | What to put in |
|---|---|
zoom |
How far to zoom, 0 (all the way out) to 100 (all the way in). |
device |
Optional. Which camera in OBSBOT Center, 1 to 4. Leave it out for the selected one. |
Gives back: true when sent.
C#
var answer = await Cb.Call("obsbot.setZoom", new { zoom = 50 });Python
answer = cb.call("obsbot.setZoom", zoom=50)Moves your OBSBOT camera to one of its saved positions (presets).
| Value | What to put in |
|---|---|
preset |
Optional. Which preset, 1 to 3. Default 1. |
device |
Optional. Which camera in OBSBOT Center, 1 to 4. Leave it out for the selected one. |
Gives back: true when sent.
C#
var answer = await Cb.Call("obsbot.triggerPreset", new { preset = 2 });Python
answer = cb.call("obsbot.triggerPreset", preset=2)Cuebot by Tech Daddy Digital · MIT license · Privacy
Cuebot Docs (the same pages, nicer to read)
- Home
- Start here
-
Guides
- Chat commands
- The mod portal
- Overlays and alerts
- Writing your own overlay widgets
- Text-to-speech
- Music and now playing
- Points, store and giveaways
- Subathons and goals
- Stream apps and devices
- VTuber apps
- Stream Deck
- The phone app
- Donations and integrations
- Discord bot
- The setup assistant and AI tools
- The assistant on your own computer
- Moving from Streamer.bot
- Cuebot's servers
- Writing code (C# and Python)
- Python in detail
- Using your own code editor
- Controlling Cuebot from other programs
- Backups and your data
- Linux
- Command-line options
- Troubleshooting
- What's experimental
- Reference