I

ImportAction

Introduced

1.0

Description

Imports an action from a file. The imported action is added to the animation source list of the specified model.

The file formats accepted by this command are:

- External Softimage Native Binary Action (".eani") files.

- dotXSI Action (".xsi") files.

- Softimage Preset Action(".Preset") files.

This command supports downloading most file types off the internet. If the filename specified is a URL then the file will be downloaded locally before the command is executed. However URL arguments are not supported for Soft3D animation files.

Scripting Syntax

ImportAction( Model, [FileName], [Name], [ActionStorage] )

Parameters

Parameter

Type

Description

Model

String or Model

Model into which the action is imported.

FileName

String

Full path to the file to import.

Default Value: User is prompted to select a file

Name

String

Name of the new action.

Default Value: The file name

ActionStorage

Integer based on the values listed in siAssetStorageType

Whether the imported action will be saved internally or externally.

If you specify -1 it will automatically detect what kind of file it is and set it.

Default Value: 0 (saved in the scene)

Return Value

Returns the action as an ActionSource.

See Also

ExportAction

LoadActionPreset

ImportMixer

Examples

• See ImportAction.1.js



Autodesk Softimage 2011