v3.0
animmixer
アニメーション ミキサに再接続します。
ReconnectMixer( [Model] ); |
パラメータ | タイプ | 詳細 |
---|---|---|
Model | 文字列 | クリップを追加するモデル
デフォルト値: シーン ルート |
' ' This example shows the purpose of the command ReconnectMixer. ' It exports a mixer that drive the object : sphere ' after the sphere is deleted as well as the mixer. ' the mixer is imported back and it gives warning because the ' sphere is missing. Using ReconnectMixer fixes the problem. ' NewScene , false ' Create the configuration sMixerPath = XSIUtils.BuildPath( _ Application.InstallationPath(siProjectPath), _ "Models", "MyImportedMixer.xsimixer" _ ) CreatePrim "Sphere", "MeshSurface" SaveKey "sphere.kine.local.sclx,sphere.kine.local.scly,sphere.kine.local.sclz", 1 SetValue "PlayControl.Key", 30 SetValue "PlayControl.Current", 30 Scale , 9.29203539823009E-02, 9.29203539823009E-02, 9.29203539823009E-02, siRelative, siLocal, siObj, siXYZ SaveKey "sphere.kine.local.sclx,sphere.kine.local.scly,sphere.kine.local.sclz", 30 StoreAction , "sphere.kine.local.sclx,sphere.kine.local.scly,sphere.kine.local.sclz,sphere.kine.local.rotx,sphere.kine.local.roty,sphere.kine.local.rotz,sphere.kine.local.posx,sphere.kine.local.posy,sphere.kine.local.posz,sphere.kine.global.sclx,sphere.kine.global.scly,sphere.kine.global.sclz,sphere.kine.global.rotx,sphere.kine.global.roty,sphere.kine.global.rotz,sphere.kine.global.posx,sphere.kine.global.posy,sphere.kine.global.posz", 2, "StoredFcvPose", True, 1, 30, False, False AddTrack "Scene_Root", "Mixer", 0 AddClip "Scene_Root", "Sources.Scene_Root.StoredFcvPose", , "Mixer.Mixer_Anim_Track", 5 ExportMixer "sphere", sMixerPath ' Delete the sphere and the mixer DeleteObj "Mixer" DeleteObj "sphere" ' Import the sphere and recreate the sphere ImportMixer sMixerPath, "Scene_Root" CreatePrim "Sphere", "MeshSurface" ' Here the sphere is not driven by the mixer, ' Call the ReconnectMixer command to reconnect the animation. ReconnectMixer "Scene_Root" |