ジャンプ先: 概要. 戻り値. キーワード. フラグ. Python 例.
timeCode([mayaStartFrame=float], [productionStartFrame=float], [productionStartHour=float], [productionStartMinute=float], [productionStartSecond=float])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
timeCode は、取り消し可能、照会可能、および編集可能です。
このコマンドを使用して、ファイルのタイム コード情報を照会および設定します。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
timecode, time
mayaStartFrame, productionStartFrame, productionStartHour, productionStartMinute, productionStartSecond
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# set the production start time to 1 hour, 33 min, 52 seconds, and 23 frames
cmds.timeCode(productionStartHour=1,productionStartMinute=33,productionStartSecond=52,productionStartFrame=23)
# query the production start time
#
cmds.timeCode(query=1,productionStartHour=True)
// result: 1
cmds.timeCode(query=1,productionStartMinute=True)
// result: 33