Introduced
6.0
Description
Imports a DirectX .x file into Softimage.
Scripting Syntax
DXImport( DX_Filename, [DX_AnimationImport], [DX_TexturesImport], [DX_OptionsInvertUVs], [DX_OptionsReorientScene], [DX_AnimationFrameOffset] )
Parameters
|
Parameter |
Type |
Description |
|
DX_Filename |
The file to import. |
|
|
DX_AnimationImport |
True to import animation. |
|
|
DX_TexturesImport |
True to import textures. |
|
|
DX_OptionsInvertUVs |
True to invert UVs. |
|
|
DX_OptionsReorientScene |
True to reorient scene. |
|
|
DX_AnimationFrameOffset |
Number of frames to offset animation. |
Return Value
CStatus::OK if successful, and an error code otherwise.
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
Autodesk Softimage v7.5