Advanced Features - SutekhVRC/VibeCheck GitHub Wiki
VibeCheck OSC API
Your avatar can control VibeCheck, not just your toys. With a few parameters you can turn VibeCheck on from your expression menu, switch groups of toys on and off, stop every toy in an emergency, or show a toy's battery on your avatar.
The API is still young and only has a few endpoints so far. Ideas for more are welcome in the Discord.
Before you start
The parameters you use need to be synced parameters. That means either:
- listed in your avatar's VRCExpressionParameters, or
- driven by a Contact or PhysBone component.
All the addresses below are avatar parameter names. On the wire they start with /avatar/parameters/, so vibecheck/api/state is really /avatar/parameters/vibecheck/api/state. On your avatar you just use the short name.
At a glance
| What it does | Parameter | Type | Direction |
|---|---|---|---|
| Turn VibeCheck on (and scan) or off | vibecheck/api/state |
bool | Avatar to VibeCheck |
| Switch toys by anatomy | vibecheck/api/anatomy/{ANATOMY}/enabled |
bool | Avatar to VibeCheck |
| Panic stop | vibecheck/api/panic |
bool | Avatar to VibeCheck |
| Toy battery | vibecheck/osc_data/{toy_name}/{toy_duplicate_id}/battery |
float | VibeCheck to avatar |
Turning VibeCheck on and off
vibecheck/api/state (bool)
| Set it to | While VibeCheck is | What happens |
|---|---|---|
true |
Off | VibeCheck turns on and scans for toys for the Scan length set in Settings (30 seconds by default) |
false |
On | VibeCheck turns off and stops any scan in progress |
Anything else does nothing: true while it's already on, or false while it's already off. That makes it safe to wire to a menu toggle.
Older versions used a separate parameter, vibecheck/state, to turn VibeCheck on. It no longer does anything, so if your avatar uses it, rename it to vibecheck/api/state.
Switch toys by anatomy
vibecheck/api/anatomy/{ANATOMY}/enabled (bool)
Turns every motor on every connected toy with that anatomy tag on (true) or off (false). Works while VibeCheck is on. Motors turned off stop straight away.
For example, vibecheck/api/anatomy/Vagina/enabled set to false turns off every toy tagged Vagina. Pair it with your SPS socket toggles so the toys follow whichever sockets are active.
{ANATOMY} can be any of these (capitals don't matter):
Anus Breasts Buttocks Chest Clitoris
Face Feet FootL FootR HandLeft
HandRight Hands Labia Mouth NA
Nipples Penis Perineum Testicles Thighs
Vagina Vulva Wrist
Panic stop
vibecheck/api/panic (bool)
Set it to true to stop every toy at once, exactly like the Stop all toys button or Ctrl + Alt + P. A float of 0.5 or more also counts as true. Works while VibeCheck is on.
It can only stop: setting it back to false does nothing, so toys stay stopped until you press Resume in the app. That way a parameter that gets stuck or flips by accident can never start your toys again.
A menu button or a "safe word" contact works well for this. More in Panic Stop.
Toy battery
vibecheck/osc_data/{toy_name}/{toy_duplicate_id}/battery (float, 0.0 to 1.0)
VibeCheck sends the toy's battery level to your avatar, where 0.0 is empty and 1.0 is full. Turn it on per toy with OSC Data in Toy settings.
The easy way to get the name right is to click the clipboard icon next to OSC Data while the toy is connected. If you're writing it by hand:
toy_nameis the toy's name in lowercase, with spaces turned into underscores.toy_duplicate_idtells two of the same toy apart. It starts at0, so with only one of that toy it's always0. Keep it in mind if you own a matching pair.