ジャンプ先: 概要. 戻り値. キーワード. Python 例.

概要

truncateHairCache()

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

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

このコマンドは、ヘア キャッシュの終了時間を現在のタイムに設定します。現在のタイムがキャッシュの終了時間より短い場合はキャッシュを切り捨て、現在のタイムを含む、現在のタイムまでの部分のみを保持します。

戻り値

なし

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

キーワード

truncate, hair, cache

Python 例

import maya.cmds as cmds

# Truncate a hair cache that has a start time of 1
# and an end time of 25 so that only the first 10
# frames are preserved and the end time of the
# cache is set to 10.
#
cmds.currentTime( 10 )
cmds.truncateHairCache()