## DXImport

### Introduced

v6.0

### Description

Imports a DirectX .x file into Softimage.

### Scripting Syntax

    oCStatus::OK = DXImport( DX_Filename, [DX_AnimationImport], [DX_TexturesImport], [DX_OptionsInvertUVs], [DX_OptionsReorientScene], [DX_AnimationFrameOffset] );

### Return Value

CStatus::OK if successful, and an error code otherwise.

### Parameters

Parameter | Type | Description
--- | --- | ---
DX_Filename | String | The file to import.
DX_AnimationImport | Boolean | True to import animation.
DX_TexturesImport | Boolean | True to import textures.
DX_OptionsInvertUVs | Boolean | True to invert UVs.
DX_OptionsReorientScene | Boolean | True to reorient scene.
DX_AnimationFrameOffset | Integer | Number of frames to offset animation.

### Examples

#### 1. JScript Example

    // First export to a file so we have something to import

    var exportto = XSIUtils.BuildPath( Application.InstallationPath(siUserPath),

    	"Data", "XSI_SAMPLES", "Scenes", "myscene.x" );

    DXExport( exportto );

    // Import only animation, textures, UVs, etc.

    DXImport( exportto );

#### 2. JScript Example

    // First export to a file so we have something to import

    var exportto = XSIUtils.BuildPath( Application.InstallationPath(siUserPath),

    	"Data", "XSI_SAMPLES", "Scenes", "myscene.x" );

    DXExport( exportto );

    // Import everything

    DXImport( exportto );

### See Also

DXExport