- Command line (for batch processing for a large number of files). This includes command line without scripting using -ie command, and with scripting using Python, and Java scripts.
- Interactive mode (from inside the GUI of SimLab Composer)
Scripting is supported in the Ultimate edition of SimLab Composer
Command line without scripting
-ie "C:\Users\simlab\Desktop\Delete\RubikCube.obj" "C:\Users\simlab\Desktop\Delete\RubikCube.skp"
Check this article for more about the command line-based methods, also for commands on Mac.
Command line Python Scripts
SimLabComposer.exe -py “File.py”
SimLabComposer.exe -py “C:\Scripts\example.py”
Passing arguments to Python Scripts
Passing arguments to a script makes it dynamic, and reusable without the need to change its code.
scene =Scene() runtime =RunTime() scene.reset() fileName= runtime.args.getAsString("-path") scene.importFile(fileName)
Interactive Scripting - Running Python script interactively
The user can run Python Scripts interactively in different ways: