フレームを表示
ジャンプ先: 概要. 戻り値. キーワード. 関連. フラグ. Python 例.
timeEditorTracks([activeClipWeight=time], [activeClipWeightId=time], [addTrack=int], [allClips=boolean], [allTracks=boolean], [allTracksRecursive=boolean], [composition=boolean], [path=string], [plugIndex=int], [removeTrack=int], [removeTrackByPath=string], [reorderTrack=[int, int]], [resetMute=boolean], [resetSolo=boolean], [selectedTracks=boolean], [trackGhost=boolean], [trackIndex=int], [trackMuted=boolean], [trackName=string], [trackSolo=boolean], [trackType=int])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
timeEditorTracks は、取り消し可能、照会可能、および編集可能です。
タイム エディタ(Time Editor)トラック コマンド
Int | 編集モードでは、新しく作成されたトラック インデックスを返します。 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
timeEditor, nle
timeEditor, timeEditorAnimSource, timeEditorClip, timeEditorComposition
activeClipWeight, activeClipWeightId, addTrack, allClips, allTracks, allTracksRecursive, composition, path, plugIndex, removeTrack, removeTrackByPath, reorderTrack, resetMute, resetSolo, selectedTracks, trackGhost, trackIndex, trackMuted, trackName, trackSolo, trackType
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Insert a track at the end
#
cmds.timeEditorTracks( 'container1_tracks', e=1, addTrack=-1 )
# Insert a track at the end by path, inside a composition
#
cmds.timeEditorTracks( path='composition1', e=1, addTrack=-1 )
# Insert a track at the end by path, inside a group clip
#
cmds.timeEditorTracks( path='composition1|track1|groupClip', e=1, addTrack=-1 )
# Remove the track from "container1_tracks"
#
cmds.timeEditorTracks( 'container1_tracks', e=1, removeTrack=1 )
# Remove the track by paths
#
cmds.timeEditorTracks( e=1, removeTrackByPath=['composition1|track2', 'composition1|track1|group|track3'] )
# Move track 0 forward 1 siblings
#
cmds.timeEditorTracks( 'container1_tracks', e=1, reorderTrack=(0, 1) )
# Set the track name
#
cmds.timeEditorTracks( 'container1_tracks', e=1, trackName="Test", trackIndex=0 )
# Set the track name by path
#
cmds.timeEditorTracks( e=1, trackName="Test", path='composition1|track2' )
# Mute the track
#
cmds.timeEditorTracks( 'container1_tracks', e=1, trackMuted=True, trackIndex=0 )