ジャンプ先: 概要. 戻り値. フラグ. Python 例.

概要

playbackOptions([animationEndTime=time], [animationStartTime=time], [blockingAnim=boolean], [by=float], [disable=boolean], [framesPerSecond=boolean], [loop=string], [maxPlaybackSpeed=float], [maxTime=time], [minTime=time], [playbackSpeed=float], [selectionEndTime=time], [selectionStartTime=time], [selectionVisible=boolean], [stepKeyLoop=boolean], [stepLoop=boolean], [view=string])

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

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

ループ スタイル、開始時間、終了時間など、再生に関連する特定値の設定か照会を行います。-minTime/maxTime、-animationStartTime/animationEndTime、-selectionStartTime/selectionEndTime/selectionVisible、または -by の値を修正するコマンドのみ元に戻すことができます。

戻り値

stringまたは float 編集済みオプションの照会。

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

フラグ

animationEndTime, animationStartTime, blockingAnim, by, disable, framesPerSecond, loop, maxPlaybackSpeed, maxTime, minTime, playbackSpeed, selectionEndTime, selectionStartTime, selectionVisible, stepKeyLoop, stepLoop, view
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
animationEndTime(aet) time createqueryedit
アニメーションの終了時間を設定します。照会すると、このフラグは float を返します。
animationStartTime(ast) time createqueryedit
アニメーションの開始時間を設定します。照会すると、このフラグは float を返します。
blockingAnim(ba) boolean createquery
アニメーションを純粋なポーズごとのフォームで表示できるように、すべての接線がステップごとに再生されます。
by(by) float createqueryedit
再生時の時間を増分します。(既定=1.0)。
disable(dsb)
2027
boolean createqueryedit
true の場合、Maya の最小/最大(min/max)、およびアニメーション開始/終了(Animation start/end)の値が無効になります。
framesPerSecond(fps) boolean createquery
実際の再生速度を照会します。照会すると、このフラグは float を返します。
loop(l) string createqueryedit
再生の繰り返しの実行および繰り返し方法を制御します。有効な値は、「once」、「continuous」、および「oscillate」です。照会すると、このフラグは string を返します。
maxPlaybackSpeed(mps) float createqueryedit
好みの最大再生スピードを設定します。照会すると、このフラグは float を返します。maxPlaybackSpeed は、playbackSpeed が 0 (すべてのフレームを再生)のときにのみ Maya により使用されます。maxPlaybackSpeed は最大再生レートをクランプし、ある特定の値を越えないようにします。maxPlaybackSpeed が 0 の場合、自由な(クランプされない)再生が行われます。
maxTime(max) time createqueryedit
再生のタイム レンジの終了時間を設定します。照会すると、このフラグは float を返します。
minTime(min) time createqueryedit
再生のタイム レンジの開始時間を設定します。照会すると、このフラグは float を返します。
playbackSpeed(ps) float createqueryedit
好みの再生スピードを設定します。照会すると、このフラグは float を返します。
selectionEndTime(set) time createqueryedit
選択の終了時間を設定します。照会すると、このフラグは float を返します。
selectionStartTime(sst) time createqueryedit
選択の開始時間を設定します。照会すると、このフラグは float を返します。
selectionVisible(sv) boolean createqueryedit
選択の可視性を設定します。照会により、現在の可視性が返されます。
stepKeyLoop(skl) boolean createquery
1 キー進む/戻る場合に、再生範囲の最初または最後にループバックする機能のオン/オフを切り替えます。
stepLoop(slp) boolean createquery
1 フレーム進む/戻る場合に、再生範囲の最初または最後にループバックする機能のオン/オフを切り替えます。
view(v) string createqueryedit
再生中のモデリング ビューの更新回数を制御します。有効な値は「all」と「active」です。照会すると、このフラグは文字列を返します。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

import maya.cmds as cmds

cmds.playbackOptions( loop='continuous' )
cmds.playbackOptions( minTime='0sec', maxTime='1sec' )
cmds.playbackOptions( selectionStartTime='0sec', selectionEndTime='1sec' )
cmds.playbackOptions( selectionVisible=False )

# Playback every 2nd frame
#
cmds.playbackOptions( by=2 )