meta data for this page
  •  

Export from the command line

Export a tree from the command line without ever opening the user interface.

To export through the Modeler, refer to Games export options or VFX export options.

Export commands

Use the following commands to export a model optimized for use in VFX or games.

CommandDescription
-hShow help/options.
-export <file>Export the loaded spm file to the specified mesh file (fbx, obj, or abc). Use this command to export a file optimized for VFX.
-export_game <file>Export the loaded spm file to the specified mesh file (fbx, obj, or abc). Use this command to export a file optimized for games.
-export_options <file>Set options for exporting using the indicated .ini file.
`<any other file>`The SPM filename to open.

The export options .ini file you can pass on the command line is the same one you can save in the Preset options of the export dialog. In this manner, you can use the Modeler to set up how you wish files to be exported at a later date. The file type you specify on the command line overrides the file type in the .ini file.

Note: On Windows, if you run the .exe directly, the command line will return immediately and may not receive output from the process until it finishes in the background. If you wish to get feedback from the Modeler, use one of the following methods:
CommandDescription
cmdstart “” /WAIT <exe> <arguments>
PowerShellStart-Process -Wait -FilePath `<exe>` -ArgumentList '`<arguments>`'