ImportMixer

Description

Imports an animation Mixer into a Model. This replaces the existing mixer (if it exists).

This command supports downloading files from the internet. If the filename specified is a URL then the file is downloaded locally before the command is executed.

Note: This command uses output arguments. C# and some scripting languages (such as JScript, PerlScript and Python) don't support arguments passed by reference so you need to use the best workaround for your situation:

For scripting languages this command returns an ISIVTCollection which you can use to get the output arguments.

For C# you can use the XSIApplication.ExecuteCommand method to call this command. ExecuteCommand packs the output arguments into a C# System.Object containing an Array of the output arguments (see Calling Commands from C#).

Scripting Syntax

ImportMixer( FileName, [Parent], [Value] );

Parameters

Parameter Type Description
FileName String Name of the mixer file to import.
Parent String Model to use as the parent of the imported mixer
Value Mixer Returns the mixer

Examples

VBScript Example

Dim oMixer

CreatePrim "Cone", "MeshSurface"

CreateModel

ExportMixer "Model", "C:\temp\mymixer.xsimixer"

ImportMixer "C:\temp\mymixer.xsimixer", "Model", False, oMixer

logmessage "Imported mixer: " & oMixer

See Also

ExportMixer ImportAction