AddLayerClip

導入

v6.0

詳細

レイヤ クリップを作成し、指定されたモデルミキサに追加します。 新しいレイヤ クリップに空のソースが追加されます。

スクリプト構文

oReturn = AddLayerClip( Model, [Track], [Name] );

戻り値

レイヤ Clip オブジェクトを戻します。

パラメータ

パラメータ タイプ 説明
Model 文字列 クリップを追加するモデル
Track 文字列 このクリップを追加するトラック。 レイヤのトラックである必要があります。
Name 文字列 新しいクリップの名前。

VBScript の例

'

' This example creates a simple Action and instantiates it

' on two different objects using a connection mapping template.

' It shows very basic mixer scripting -- creating Actions, tracks

' and clips, as well as a simple mapping template.

'

' Create objects for our example.

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

posParams = "/kine.local.posx,kine.local.posy,kine.local.posz"

' Make an Action with it moving diagonally over 20 frames.

SetPositionKey oSphere, 1, -5, -5, 0

SetPositionKey oSphere, 20, 5, 5, 0

' Create a layer track and instantiate the Action onto it

set oTrack = AddTrack( "Scene_Root", , 5 )

set oClip = AddLayerClip( "Scene_Root", oTrack )

'==================================================

' Helper method to key an object somewhere at a given frame.

'==================================================

sub SetPositionKey( in_oObj, in_frame, in_posX, in_posY, in_posZ )

	Translate in_oObj, in_posX, in_posY, in_posZ, siAbsolute, siParent, siObj, siXYZ

	SaveKey in_oObj & posParams, in_frame

end sub

関連項目

AddTrack Clip