/*
This example shows how to import/export a Crosswalk file
*/
NewScene( null, false );
// Create something to export
CreatePrim( "Cylinder", "MeshSurface" );
// Create the export options property
var myEProp = CreateExportCrosswalkOptions( "Scene_Root");
// Specify the full path to the file you want to export
myEProp.Parameters("Filename").Value = "C:\\temp.xsi";
// Export the file
ExportCrosswalk( myEProp.Name );
// Create the import options property
var myIProp = CreateImportCrosswalkOptions( "Scene_Root", "MyImportCrosswalkOptions" );
// Specify the full path to the file you want to import
myIProp.Parameters("Filename").Value = "C:\\temp.xsi";
// Import the file
ImportCrosswalk( myIProp.Name );
// Expected results:
// INFO : 458 mSec - cumulative: 458 mSec
// INFO : Set version
// INFO : 16 mSec - cumulative: 510 mSec
// INFO : Converting scene info
// INFO : 5 mSec - cumulative: 518 mSec
// INFO : Converting environment
// INFO : 8 mSec - cumulative: 530 mSec
// INFO : Converting environment animations
// INFO : 25 mSec - cumulative: 561 mSec
// INFO : Converting image clips
// INFO : 1 mSec - cumulative: 568 mSec
// INFO : Converting image clip animations
// INFO : 1 mSec - cumulative: 691 mSec
// INFO : Converting materials
// INFO : 29 mSec - cumulative: 725 mSec
// INFO : Converting material animations
// INFO : 8 mSec - cumulative: 739 mSec
// INFO : Filtering pass
// INFO : 1 mSec - cumulative: 745 mSec
// INFO : Converting hierarchy - first pass
// INFO : 198 mSec - cumulative: 949 mSec
// INFO : Converting hierarchy - second pass
// INFO : 4 mSec - cumulative: 958 mSec
// INFO : Plotting animations
// INFO : Plotting fcurves (1-3/3)
// INFO : 64 mSec - cumulative: 1027 mSec
// INFO : Writing file
// INFO : Parser recognizes a dotXSI file
// INFO : 54 mSec - cumulative: 1086 mSec
// INFO : Export completed
// INFO : 0 mSec - cumulative: 0 mSec
// INFO : Reading file
// INFO : Parser recognizes a dotXSI file
// INFO : 511 mSec - cumulative: 522 mSec
// INFO : Converting scene info
// INFO : 8 mSec - cumulative: 535 mSec
// INFO : Converting environment
// INFO : 7 mSec - cumulative: 547 mSec
// INFO : Converting environment animation
// INFO : 1 mSec - cumulative: 553 mSec
// INFO : Converting image clips
// INFO : 1 mSec - cumulative: 559 mSec
// INFO : Converting image clip animation
// INFO : 0 mSec - cumulative: 563 mSec
// INFO : Converting materials
// INFO : 213 mSec - cumulative: 782 mSec
// INFO : Converting material animation
// INFO : 0 mSec - cumulative: 788 mSec
// INFO : Converting hierarchies and primitives
// INFO : 715 mSec - cumulative: 1508 mSec
// INFO : Resolving instances
// INFO : 1 mSec - cumulative: 1514 mSec
// INFO : Converting hierarchy node data and animation
// INFO : 29 mSec - cumulative: 1548 mSec
// INFO : Connecting Operators
// INFO : 1 mSec - cumulative: 1554 mSec
// INFO : Applying hierarchy properties
// INFO : 5 mSec - cumulative: 1564 mSec
// INFO : Post processing
// INFO : 1 mSec - cumulative: 1570 mSec
// INFO : Optimize and Cleanup
// INFO : 7 mSec - cumulative: 1583 mSec
// INFO : Import completed
|