Q100096: Getting Started with Modo CL

Follow

SUMMARY

This article will help you set up and start using Modo CL, a command line version of Modo.

MORE INFORMATION

Modo CL is a headless (no GUI) instance of the application.

The advantages of this are as follows:

  • Reduced memory usage
  • No license requirement
  • Assists integration with Render Farms

 

Launching Modo CL:

Modo CL can be launched through the Terminal or Command Prompt. The default locations for launching Modo CL are:

Windows:

C:\Program Files\Luxology\modo\14.1v3\modo_cl.exe

OSX:

/Applications/modo.app/Contents/MacOS/modo_cl

Linux:

Navigate to where you installed Modo and type:

./modo_cl

 

Executing and Querying Commands:

Commands can be queried in the main Modo application through the Command History. Every time a tool or feature is used in Modo, the equivalent command will be displayed here under the Undos tab. The command history can be accessed by pressing "F5" on the keyboard, or by clicking and dragging on the partition between the command bar and the item properties form.

RevealCommandHistory.gif

Image 1: Revealing the Command History

Alternatively, you can look up every command under the Commands tab of the Command History:

CommandsTab.png

Image 2: The "Commands" tab of the Command History Window

 

Example Commands:

The following commands will; enable console output, open a scene, change the render frame range, render the scene and quit the app: 

log.toConsole true
log.toConsoleRolling true
scene.open "path/path/scene.lxo"
@ChangeRenderFrameRange.pl 1 10 1
render.animation "path/path/renderName" PNG
app.quit

NOTE: The paths will need to be amended to match your environment. You can change the frame range (format: <first> <last> <stepsize>) and the file type if desired:

  • JPG
  • $Targa
  • TIF
  • TIF16
  • openexr
  • openexr_32

 

Launching from a File:

You can pass a list of commands from a file which will then be run on launch. Modo will automatically quit after executing the command file. For example:

  • Save a file with the desired commands listed within as "commands.txt"
  • Launch Modo CL with the addition of '< commands.txt'
modo_cl.exe < commands.txt
modo_cl < commands.txt

 

Further information about Modo CL can be found here: http://sdk.luxology.com/wiki/Headless

 

Further Help

If you encounter any issues using Modo CL please open a Support ticket and let us know what issues you are encountering and the troubleshooting steps you have taken so far.

For more information on how to do this, please see the following article: Q1000064: How to raise a support ticket. 

 

We're sorry to hear that

Please tell us why