It is possible to start the SpeedTree® Compiler from the command line and perform a number of tasks automatically.
There are two methods for using the SpeedTree Compiler from the command line: SpeedTree Compiler.exe or SpeedTree Compiler.com. Both will launch the compiler and accept any of the command lines below. The only difference is that SpeedTree Compiler.com will route all output messages to the console from which it is called. If output messages are not important, SpeedTree Compiler.exe will suffice. If output messages are required, then SpeedTree Compiler.com must be used.
When calling the SpeedTree® Compiler from the command line, there are a number of arguments that can be passed to cause different behavior. They are listed below.
|-compile||The passed SCS file should be loaded and silently compiled (no GUI).|
|-exportraw||The passed SCS file should be loaded and silently exported as raw files (no GUI).|
|-export <Exporter>||The passed SCS file should be loaded and silently exported using the exporter indicated (no GUI). The exporter is chosen by passing the name used for that exporter, as in the SME file.|
|<SCS file path>||The SCS file to be loaded. If any of the three previous arguments are passed, then some action will occur with no GUI. Otherwise, the Compiler will start normally and load the SCS file.|
It is not possible to pass every single option to fully automate the process of compiling on the command line. Therefore, to fully automate the process of compilation it is necessary for an external application to write an SCS file and pass it to the Compiler using the command line arguments shown above. Please see the documentation on the SCS format.