Introduced
5.1
Deprecated
6.0 (replaced by ExportCrosswalk)
Description
Exports a dotXSI 5.0 or Collada file. This command replaces the deprecated ExportdotXSI5.
Scripting Syntax
ExportFTK( arg0 )
Parameters
|
Parameter |
Type |
Description |
|
arg0 |
The scripting name of the ExportFTKOptions property that specifies the export options. You use the CreateExportFTKOptions command to create this property. |
Return Value
CStatus::OK if successful, and an error code otherwise.
Examples
JScript Example
/*
This example shows how to import/export a dotXSI file
*/
NewScene( null, false );
// Create something to export
CreatePrim( "Cylinder", "MeshSurface" );
// Create the export options property
var myEProp = CreateExportFTKOptions( "Scene_Root", "MyExportFTKOptions" );
// Specify the full path to the file you want to export
myEProp.Parameters("Filename").Value = "C:\\temp.xsi";
// Export the file
ExportFTK( myEProp.Name );
// Create the import options property
var myIProp = CreateImportFTKOptions( "Scene_Root", "MyImportFTKOptions" );
// Specify the full path to the file you want to import
myIProp.Parameters("Filename").Value = "C:\\temp.xsi";
// Import the file
ImportFTK( myIProp.Name );
// Expected results:
//INFO : 24 mSec - cumulative: 24 mSec
//INFO : Set version
//INFO : 1 mSec - cumulative: 33 mSec
//INFO : Converting scene info
//INFO : 4 mSec - cumulative: 39 mSec
//INFO : Converting environment
//INFO : 8 mSec - cumulative: 54 mSec
//INFO : Converting environment animations
//INFO : 2 mSec - cumulative: 58 mSec
//INFO : Converting image clips
//INFO : 0 mSec - cumulative: 67 mSec
//INFO : Converting image clip animations
//INFO : 0 mSec - cumulative: 71 mSec
//INFO : Converting materials
//INFO : 20 mSec - cumulative: 100 mSec
//INFO : Converting material animations
//INFO : 7 mSec - cumulative: 120 mSec
//INFO : Filtering pass
//INFO : 1 mSec - cumulative: 126 mSec
//INFO : Converting hierarchy - first pass
//INFO : 73 mSec - cumulative: 204 mSec
//INFO : Converting hierarchy - second pass
//INFO : 3 mSec - cumulative: 211 mSec
//INFO : Plotting animations
//INFO : 2 mSec - cumulative: 218 mSec
//INFO : Writing file
//INFO : Parser recognizes a dotXSI file
//INFO : 7 mSec - cumulative: 229 mSec
//INFO : Export completed
//INFO : 0 mSec - cumulative: 0 mSec
//INFO : Reading file
//INFO : Parser recognizes a dotXSI file
//INFO : 31 mSec - cumulative: 42 mSec
//INFO : Converting scene info
//INFO : 7 mSec - cumulative: 53 mSec
//INFO : Converting environment
//INFO : 17 mSec - cumulative: 75 mSec
//INFO : Converting environment animation
//INFO : 1 mSec - cumulative: 81 mSec
//INFO : Converting image clips
//INFO : 1 mSec - cumulative: 86 mSec
//INFO : Converting image clip animation
//INFO : 0 mSec - cumulative: 90 mSec
//INFO : Converting materials
//INFO : 37 mSec - cumulative: 131 mSec
//INFO : Converting material animation
//INFO : 0 mSec - cumulative: 135 mSec
//INFO : Converting hierarchy
//INFO : 191 mSec - cumulative: 330 mSec
//INFO : Connecting Operators
//INFO : 1 mSec - cumulative: 342 mSec
//INFO : Applying hierarchy properties
//INFO : 3 mSec - cumulative: 350 mSec
//INFO : Post processing
//INFO : 1 mSec - cumulative: 355 mSec
//INFO : Import completed
See Also
SOFTIMAGE|XSI v6.01