R

ReconnectMixer

Introduced

3.0

Description

Reconnect the animation mixer.

Scripting Syntax

    ReconnectMixer( [Model] )

Parameters

Parameter | Type | Description
Model | String | Model to add the clip to. Default Value: Scene root.

Examples

VBScript Example

    ' 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.

    ' Create the configuration
    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", "T:\XSI_Project\Models\mymixer.xsimixer"

    ' delete the sphere and the mixer
    DeleteObj "Mixer"
    DeleteObj "sphere"

    SelectObj "Scene_Root"
    ImportMixer "T:\XSI_Project\Models\mymixer.xsimixer", "Scene_Root"

    ' recreate the sphere
    CreatePrim "Sphere", "MeshSurface"

    ' Here the sphere is not driven by the mixer,
    ' Call the ReconnectMixer command to reconnect the animation.
    SelectObj "Mixer"
    ReconnectMixer

Autodesk Softimage v7.5