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.

FBXExportSelection

See Selection Only.

FBXExportGeometries

See Geometry.

FBXExportShapes

See Shapes.

FBXExportSkins

See Skin.

FBXExportCameras

See Cameras.

FBXExportLights

See Lights.

FBXExportEmbedMedias

See Embed Textures.

FBXExportConvert2Tif

See Convert to TIFF.

FBXExportAnimation

See Export Animation.

FBXExportFrameRate

See FPS.

FBXExportKeepXSIEffectors

See Keep XSI effectors.

FBXImport

Imports an FBX file. See Importing FBX.

FBXImportMode

See Load Options.

FBXImportCameras

See Cameras.

FBXImportLights

See Lights.

FBXImportAnimation

See Import animation.

FBXImportProtectExprDriven

See Protect expression-driven animation curves.

FBXImportSkeletonAsNulls

See Import skeleton elements as nulls.

FBXImportKeepXSIEffectors

See Keep XSI effectors.

FBXImportSetEnvelopes

See Set envelopes.

FBXImportForceNormEnvelope

See Force normalization of envelope weights.

FBXImportNamespaceReplacement

Sets the namespace string to be replaced during import.

 



Autodesk Softimage v.7.5