MoveClipToTrack

導入

v1.0

詳細

1 つのトラック内でクリップを移動するか、またはモデル内の同じタイプの別のトラックにコピーします。

スクリプト構文

MoveClipToTrack( Model, Clip, [Compound], [Track], [Time] );

パラメータ

パラメータ タイプ 説明
Model 文字列 クリップを所有するモデル。注: このパラメータは、ショット クリップ タイプでは無視されます。
Clip 文字列 移動するクリップ
Compound 文字列 クリップを移動するコンパウンド コンテナ(トラックの所有者)注: このパラメータは、ショット クリップ タイプでは無視されます。
Track 文字列 クリップの移動先トラック(NULL の場合は、同じトラック内で移動)
Time Double クリップの移動先フレーム

デフォルト値: 現在のフレーム。

VBScript の例

'

' This example makes a couple of shape keys and instantiates them on the mixer,

' transitioning between them.  Then it moves one of the clips into a compound

' clip container.

'

' Create the object for our example.

set oSphere = CreatePrim( "Sphere", "MeshSurface" )

' Store a couple of shape keys (we use the temporarily-applied bulge

' just to have an interesting shape for the second key.

set oSourceShape1 = StoreShapeKey( oSphere, , siShapeLocalReferenceMode )

set oBulge = ApplyOp( "Bulge", oSphere, 3, siPersistentOperation, , 1 )

set oSourceShape2 = StoreShapeKey( oSphere, , siShapeLocalReferenceMode )

DeleteObj oBulge

' Create a temporary track to put the clips onto.

set oTrackTemp = AddTrack( oSphere, , 1 )

' Instantiate the shape sources onto the track.

set oClipShape1 = AddClip( "Scene_Root", oSourceShape1, , oTrackTemp, 1 )

set oClipShape2 = AddClip( "Scene_Root", oSourceShape2, , oTrackTemp, 90 )

' Put a transition between the two clips.

AddTransition oClipShape1, oClipShape2, 0

' Create a track for a shape compound, then move one of the clips into it.

set oTrackCpd = AddTrack( "Scene_Root", , 1, "ForCompound" )

MoveClipToTrack "Scene_Root", oClipShape2, , oTrackCpd 

' Delete the temporary track

DeleteObj oTrackTemp

関連項目

CopyClipToTrack AddClip AddTrack