diff options
| author | yum <yum.food.vr@gmail.com> | 2023-08-11 11:29:02 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2023-08-11 11:29:02 -0700 |
| commit | 3efa1498c7ff8012735d6773b56e19f67cf11a02 (patch) | |
| tree | 018f9d97e05b5cb1a12b8a6ce4703bd2a3718422 /Scripts/osc_ctrl.py | |
| parent | 52ca7435f788e9bf981c7786046d5ca093e9688d (diff) | |
Animate pre-speech ellipsis
Text box now shows an animated ellipsis prior to first speech.
Diffstat (limited to 'Scripts/osc_ctrl.py')
| -rw-r--r-- | Scripts/osc_ctrl.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Scripts/osc_ctrl.py b/Scripts/osc_ctrl.py index e7f422b..b1ec765 100644 --- a/Scripts/osc_ctrl.py +++ b/Scripts/osc_ctrl.py @@ -59,6 +59,10 @@ def disable(client): addr="/avatar/parameters/" + generate_utils.getEnableParam() client.send_message(addr, False) +def ellipsis(client, enable: bool): + addr="/avatar/parameters/" + generate_utils.getEllipsisParam() + client.send_message(addr, enable) + def clear(osc_state: OscState): disable(osc_state.client) @@ -122,6 +126,8 @@ def pageMessage(osc_state: OscState, msg: str, estate: EmotesState) -> bool: for i in range(0, len(encoded)): updateRegion(osc_state.client, i, encoded[i]) + ellipsis(osc_state.client, False) + # Wait for parameter sync. time.sleep(SYNC_DELAY_S) |
