移動先: 概要 戻り値 キーワード. 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()