Scripting Crosswalk for Softimage

 
 
 

You can script the export and import of Crosswalk files. The procedure is different depending on whether you are using dotXSI and COLLADA or FBX.

dotXSI and COLLADA

You can script the export and import of dotXSI and COLLADA files using the ExportCrosswalk and ImportCrosswalk commands. To create the options, you use CreateExportCrosswalkOptions and CreateImportCrosswalkOptions. You can use these commands to run batch scripts in one of the compatible scripting languages (VBScript, JScript, PerlScript, and Python ActiveX)

Exporting

CreateExportCrosswalkOptions , "ExportCrosswalkOptions"
SetValue "ExportCrosswalkOptions.Filename", "C:/temp/test"
SetValue "ExportCrosswalkOptions.Format", 3
ExportCrosswalk "ExportCrosswalkOptions"

Importing

CreateImportCrosswalkOptions , "ImportCrosswalkOptions"
SetValue "ImportCrosswalkOptions.Filename", "C:/temp/test.xsi"
ImportCrosswalk "ImportCrosswalkOptions"

FBX

Crosswalk for Softimage includes the Softimage FBX plugin. You can script the export and import of FBX files using the FBX batch processing commands.

Batch Processing Commands

The FBX import and export dialog box options are not directly available from the command line but, since they are stored, you can get and set them using their equivalent batch processing commands. You can use these commands to run batch scripts in one of the compatible scripting languages (VBScript, JScript, PerlScript, and Python ActiveX).

Command

Description

FBXExport

Exports an FBX file. See Exporting FBX.

FBXExportAutomaticUnit

See Export FBX Options Dialog Box.

FBXExportUnit

See Export FBX Options Dialog Box.

FBXExportSelection

See Export FBX Options Dialog Box.

FBXExportGeometries

See Export FBX Options Dialog Box.

FBXExportShapes

See Export FBX Options Dialog Box.

FBXExportSkins

See Export FBX Options Dialog Box.

FBXExportCameras

See Export FBX Options Dialog Box.

FBXExportLights

See Export FBX Options Dialog Box.

FBXExportEmbedMedias

See Export FBX Options Dialog Box.

FBXExportConvert2Tif

No longer supported.

FBXExportAnimation

See Export FBX Options Dialog Box.

FBXExportFrameRate

Sets the resampling rate. If not specified, the scene's frame rate is used.

FBXExportKeepXSIEffectors

See Export FBX Options Dialog Box.

FBXExportDeformerAsSkeleton

Ensures the proper tagging and export of any supported object that is being used as an envelope deformer. Enables FBX to XNA compatibility. See Export FBX Options Dialog Box.

FBXExportCacheFile

See Export FBX Options Dialog Box

FBXExportGroupAsCache

See Export FBX Options Dialog Box

FBXImport

Imports an FBX file. See Importing FBX.

FBXImportAutomaticUnit

See Import FBX Options Dialog Box.

FBXImportUnit

See Import FBX Options Dialog Box...

FBXImportMode

See Load Options.

FBXImportCameras

See Import FBX Options Dialog Box.

FBXImportLights

See Import FBX Options Dialog Box.

FBXImportAnimation

See Import FBX Options Dialog Box.

FBXImportProtectExprDrivenFC

Keeps any expression-driven animation when merging back your scene.

FBXImportSkeletonsAsNulls

See Import FBX Options Dialog Box.

FBXImportKeepXSIEffectors

See Import FBX Options Dialog Box.

FBXImportSetEnvelopes

See Import FBX Options Dialog Box.

FBXImportForceNormEnvelope

See Import FBX Options Dialog Box.

FBXImportNamespaceReplacement

Sets the namespace string to be replaced during import.

FBXImportCacheFile

See Import FBX Options Dialog Box.

FBXImportFillTimeline

See Import FBX Options Dialog Box

FBXImportFrameRate

See Import FBX Options Dialog Box

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License