SwapRelationMasterAndSlaveClip

導入

v4.0

カテゴリ

animmixer

詳細

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

スクリプト構文

SwapRelationMasterAndSlaveClip( [Relation] );

パラメータ

パラメータ タイプ 詳細
Relation ClipRelation リレーション

デフォルト値: 現在選択されている値。空の場合は、セッションを選択

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 );