SwapRelationMasterAndSlaveClip

SwapRelationMasterAndSlaveClip

導入

v4.0

詳細

ClipRelation のマスタクリップとスレーブクリップを入れ替え、新しいスレーブ/マスタクリップの ClipRelation オブジェクト間のオフセットを再計算します。

スクリプト構文

SwapRelationMasterAndSlaveClip( [Relation] );

パラメータ

パラメータ タイプ 説明
Relation ClipRelation リレーション

デフォルト値: Current selection, if empty:pick session

JScript の例

// This example shows how to create a ClipRelation between two clip object and exchange the

// the master and slave clip.

CreatePrim("Cone", "MeshSurface", null, null);

Translate(null, 5.57429595406375, 0.195303936039821, -1.95303936039821E-02, siRelative, siView, siObj, siXYZ, null, null, siXYZ, null, null, null, null, null, null, 0);

StoreAction(null, "cone.kine.local.sclx,cone.kine.local.scly,cone.kine.local.sclz,cone.kine.local.rotx,cone.kine.local.roty,cone.kine.local.rotz,cone.kine.local.posx,cone.kine.local.posy,cone.kine.local.posz", 1, "StoredStaticPose", true, 1, 5, false, false);

SelectObj("cone", null, true);

AddTrack("Scene_Root", "Scene_Root", 0, null, null);

AddTrack("Scene_Root", "Scene_Root", 0, null, null);

AddClip("Scene_Root", "Sources.Scene_Root.StoredStaticPose", null, "Mixer.Mixer_Anim_Track", 19, null, null, null, null);

AddClip("Scene_Root", "Sources.Scene_Root.StoredStaticPose", null, "Mixer.Mixer_Anim_Track1", 47, null, null, null, null);

var myClipRelation = AddClipRelation("Mixer.Mixer_Anim_Track.StoredStaticPose_Clip", "Mixer.Mixer_Anim_Track1.StoredStaticPose_Clip1", null);

SwapRelationMasterAndSlaveClip( myClipRelation );