FacialBaker - ShoninVRC/ShoninAssets GitHub Wiki

License

このスクリプトはMITライセンスで提供致します。

This script is provided under the MIT license.
LICENSE:https://github.com/ShoninVRC/ShoninAssets/blob/master/LICENSE

Background

Unityでの撮影用に使った表情をサクッとVRCに持っていきたいので作りました。

I made this because I wanted to quickly bring the expressions I used for filming in Unity to VRC.

Usage

エディタ画面上部のShoninAssets/FacialBakerからウィンドウを開きます。
ルートオブジェクトを指定し、各種設定した後Bakeボタンを押すとアニメーションファイルが出力されます。

Open the window from ShoninAssets/FacialBaker at the top of the editor screen.
Specify the root object, make settings and press the Bake button to output an animation file.

Setting Description

Root

アニメーションのルートオブジェクトを指定します。出力するアニメーションでは、ルートオブジェクトからの絶対パスが使用されます。

Specifies the root object of the animation. The output animation will use the absolute path from the root object.

SkinnedMeshRenderers

ルートオブジェクト内に含まれるSkinnedMeshRendererのうち、シェイプキーのあるものを表示します。選択したオブジェクトがアニメーションに登録されます。

Shows the SkinnedMeshRenderer contained within the root object that has a shape key. The selected object will be baked in the animation.

All / None

SkinnedMeshRenderersのチェックボックス全てをチェック、非チェックします。

Check or uncheck all SkinnedMeshRenderers checkboxes.

Directory Path

アニメーションファイルを保存するフォルダパスを指定します。指定されたフォルダが存在しない場合は新しく作成します。

Specifies the folder path where the animation files are to be saved. If the specified folder does not exist, create a new one.

File Name

アニメーションファイルのファイル名を指定します。ファイル名が指定されない場合は現在時刻が使用されます。

Specifies the filename of the animation file. If no file name is specified, the current time is used.

Include zero value

値が0のシェイプキーを含めます。

Include shape keys with a value of 0.

Reference animation clip

参照するアニメーションファイルを指定します。アニメーションファイルが指定されている場合はその内容をコピーした上でアニメーションファイルを作成します。

Specifies the animation file to be referenced. If the animation file is specified, its content is copied and then the animation file is created.

##Reference Properties 参照するアニメーションファイルに含まれているプロパティのうち、追加又は除外するプロパティを指定します。全てのチェックが外れている場合は参照するアニメーションファイルを無視します。

Specify which properties to include or exclude from the referenced animation file. If all checkboxes are unchecked, the referenced animation file will be ignored.

All / None

プロパティのチェックボックス全てをチェック、非チェックします。

Check or uncheck all properties checkboxes.

##Exclude チェックされている場合、参照するアニメーションに含まれるプロパティと同じプロパティを除外します。チェックが外れている場合、参照するアニメーションのキーを新規アニメーションに追加します。

If this box is checked, properties that match those in the referenced animation will be excluded. If unchecked, keys from the referenced animation will be added to the new animation.

Bake

アニメーションファイルを出力します。

Make animation files.