移動先: 概要 戻り値 キーワード. フラグ. MEL 例.

概要

cacheFileMerge [-endTime time] [-geometry] [-startTime time]

cacheFileMerge は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。

選択または指定したキャッシュが正常にマージできる場合、新しいキャッシュの開始/終了フレーム、そしてファイルにデータを書き込むことができない、マージ済みキャッシュ内の任意のギャップの開始/終了フレームの順に返します。照会モードでは、指定したキャッシュ ファイル ノードにコネクトされたジオメトリの名前を返します。

戻り値

float[]マージしたキャッシュの開始時間と終了時間、続いて任意のギャップの開始/終了
string[]照会モードで指定したキャッシュにコネクトされたジオメトリの名前

戻り値の型は照会モードでは照会フラグが基になります。

キーワード

cache, file, merge, disk

フラグ

endTime, geometry, startTime
ロング ネーム(ショート ネーム) 引数型 プロパティ
-geometry(-g) query
指定したキャッシュ ファイルにコネクトされたジオメトリ ノードを検索するために使用する照会専用フラグです。
-startTime(-st) time create
マージ範囲の開始フレームを指定します。指定しない場合、マージするキャッシュの時間から範囲を計算します。
-endTime(-et) time create
マージ範囲の終了フレームを指定します。指定しない場合、マージするキャッシュの時間から範囲を計算します。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : 1 つのコマンドで複数回使用可能なフラグ

MEL 例

// Find associated geometry nodes
//
string $geom[] = `cacheFileMerge -q -geometry cache1 cache2`;
// Validate merging of caches and find out start/end times
// This will give a warning if there is a gap letting you know that
// simulation data will fill the gap.
//
string $startEndTimes[] = `cacheFileMerge cache1 cache2`;
// Result: { 0, 20, 5, 10 }
int $start = $startEndTimes[0];
int $end = $startEndTimes[1];
int $gapStart = $startEndTimes[2];
int $gapEnd = $startEndTimes[3];
// Create a new merged cache, using simulation data to fill in
// any gaps between cache1 and cache2.
//
string $cacheFiles[] = `cacheFile -fileName "mergedCache" -startTime $start -endTime $end -points $geom[0]`;
string $switch = createHistorySwitch("pPlane1", false);
cacheFile -attachFile -f $cacheFiles[0] -ia ($switch+".inp[0]");
setAttr ($switch+".playFromCache") true;
// Alternatively, can use append to make sure that we interpolate
// for the frames in the gap between cache1 and cache2.
//
string $cacheFiles[] = `cacheFile -fileName "mergedCache" -startTime $start -endTime $gapStart -points $geom[0]`;
string $switch = createHistorySwitch("pPlane1", false);
cacheFile -attachFile -f $cacheFiles[0] -ia ($switch+".inp[0]");
setAttr ($switch+".playFromCache") true;
cacheFile -replaceCachedFrame -startTime $gapEnd -endTime $end -points  $geom[0];