0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

(調整中)Open Sound Control (OSC)でVRChatアバターの外部PythonOSCでAPIを実装してみた体験記

0
Posted at

最終目的

① VRChatをDesktopModeで起動する時にアバター表情をFXMenuを開かずに(リアルの)タブレットで変更したい。
② NuxtJSでOSC通信を実装してみたい。

方法

一旦PythonOSCというライブラリでVRChatにOSC通信を実装
localhost:9000/avatar/parameters/{パラメーター名}に送信するとパラメーター変更ができます

from pythonosc import udp_client

# VRChat listens on localhost port 9000 by default
client = udp_client.SimpleUDPClient("127.0.0.1", 9000)

# "Expression"というパラメーターを変更 
# where 1 = 笑顔, 2 = 悲しい, 3 = 怒り:
client.send_message("/avatar/parameters/Expression", 1) 

#booleanの場合:
client.send_message("/avatar/parameters/Smile", True)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?