v6.0
Imports a DirectX .x file into Softimage.
oCStatus::OK = DXImport( DX_Filename, [DX_AnimationImport], [DX_TexturesImport], [DX_OptionsInvertUVs], [DX_OptionsReorientScene], [DX_AnimationFrameOffset] ); |
CStatus::OK if successful, and an error code otherwise.
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. |
// 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 ); |
// 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 ); |