Skip to content

Commit

Permalink
VIVEアイトラ・口トラを無効にするコマンドライン引数「--esperecyan-disable-eye-lip-tracking」を実装
Browse files Browse the repository at this point in the history
VirtualCast 2.1.5e (2022-01-20) 現在、VIVE Pro Eye以外を接続している場合、VIVEのアイトラッキングを有効にしていると、VirtualCastがフリーズし、OSの再起動が必要になる不具合があるため。
https://virtualcast.jp/blog/2022/01/0126_shinchoku/
  • Loading branch information
esperecyan committed Feb 2, 2022
1 parent 54159e0 commit fcf6ee3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
12 changes: 12 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ allow_direct_view: true

起動オプション
--------------
### `--esperecyan-disable-eye-lip-tracking`
VIVEのアイトラッキング、リップトラッキングを無効化します。

JSONへの変換時に次のプロパティを削除します。
- `enable_vivesranipal_eye`
- `enable_vivesranipal_blink`
- `enable_vivesranipal_eye_with_emotion`
- `enable_vivesranipal_lip`

VirtualCast 2.1.5e (2022-01-20) 現在、VIVE Pro Eye以外を接続している場合、VIVEのアイトラッキングを有効にしていると、VirtualCastがフリーズし、OSの再起動が必要になる不具合があります。
https://virtualcast.jp/blog/2022/01/0126_shinchoku/

### `--esperecyan-document-index=[数字]` (0から始まる整数)
一つのファイル内に複数のYAMLドキュメントが埋め込まれていた場合、読み込むドキュメントを切り替えます。

Expand Down
17 changes: 14 additions & 3 deletions バーチャルキャストを起動.js.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,20 @@ function putFileContents(path, contents)
/**
* 指定されたコマンドライン引数名の値を取得します。
* @param {string} name
* @returns {string}
* @returns {?(string|true)}
*/
function getArgument(name)
{
for (var i = 0, l = WSH.Arguments.length; i < l; i++) {
if (WSH.Arguments(i).startsWith(name + '=')) {
var argument = WSH.Arguments(i);
if (argument === name) {
return true;
}
if (argument.startsWith(name + '=')) {
return WSH.Arguments(i).replace(name + '=', '');
}
}
return '';
return null;
}

/**
Expand Down Expand Up @@ -226,6 +230,13 @@ for (var profileName in profileNameFilesPairs) {
config = configs[index];
}

if (getArgument('--esperecyan-disable-eye-lip-tracking')) {
delete config.enable_vivesranipal_eye;
delete config.enable_vivesranipal_blink;
delete config.enable_vivesranipal_eye_with_emotion;
delete config.enable_vivesranipal_lip;
}

if (!isValidConfig(config, files.input.Name)) {
return;
}
Expand Down

0 comments on commit fcf6ee3

Please sign in to comment.