SpeedTree
    Show / Hide Table of Contents

    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.

    Command Description
    -h Show 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.

    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:

    • cmd: start /WAIT <exe> <arguments>
    • PowerShell: Start-Process -Wait -FilePath <exe> -ArgumentList '<arguments>'
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.