Unity->Blender Pose Sync
- Digital0 JPY

UnityからBlenderへ姿勢情報を送信するスクリプト。 TCP通信でMessagePackを用いて高速で低遅延な姿勢同期をします。 60fpsくらいまでほとんど問題なく同期すると思います 衣装製作の動作時ウェイトチェック->リアルタイム修正 レンダリング アニメーションアセットのBlender流用を想定 特徴 ルートモーション対応 VRCphysboneのような物理で動くボーンにも対応 Transformをワールド基準で 送信します(FKやIKの変換が無いシンプルな感じです) Transform名とBlender側のボーン名のマッチングで解決
導入方法
メッセージパックの導入 Nuget For Unity を導入 Nuget経由でMessage Packを導入 パッケージマネージャーでgitURLからメッセージパックを導入 詳細はメッセージパック↓ https://github.com/MessagePack-CSharp/MessagePack-CSharp#unity-support Add Componentでキャラクター(アバター)階層のルートにコンポーネントをアタッチしてPlayモードに入ると送信開始 TCP/IP通信なので、ファイアウォール警告が出たら許可してください 基本ローカル通信を想定してます Blender側 同梱Pythonをアドオンとしてインストール (PoseSync サイドバー) 動かしたいアーマチュアを選択 再生時だけエンプティが親になります (ルートモーションの代替オブジェクト)
Requirements
Unity 2022 3.22 f1 ~ Blender 5.1~
ライセンス
MITライセンス The MIT License (MIT) Copyright (c) <2026> <D9speed> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

