ジャンプ先: 概要. 戻り値. キーワード. フラグ. MEL 例.

概要

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

cacheFileMerge は、取り消し可能、照会可能、および編集可能です。

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

戻り値

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

照会モードでは、戻り値のタイプは照会されたフラグに基づきます。

キーワード

cache, file, merge, disk

フラグ

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

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます コマンド内でフラグを複数回使用できます。

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];