Rendering with C4D command line

Maxon Cinema 4D command line commands and options

Command Line Executable

The Commandline executable is identical to Cinema 4D except for the following:

Command Line Flags

-debug On CINEMA 4D startup a debug output console will open.
-g_alloc=debug Enables the debug memory management (and debug output console).
-parallel PC only, start CINEMA 4D as an additional instance (handy with Bugslife).
-title titletext the titletext will be shown as the title of the application (10.012 - 10.506: Titletext can be any text. It will be displayed as an extension of the application’s windows title.)
-help display command line options
-help= display help of the base system. With help=dev, help=plugin, help=extension, help=impl, help=all you can output certain categories
-g_logfile=[string] create a logfile for all console output
-g_threadCount=[0..256] set a program-wide thread count. The number can be higher than the actual number of cores. A value of 0 will utilize the real number of cores
-g_prefspath=mydirectory forces the use of the specified directory as home directory for save / load as well as preferences. Use quotes around the whole term if there is a space in the path
-noopengl disable openGL
-nogui start CINEMA 4D without a gui. This parameter needs to be the first in the list of parameters.
-layout filename Replace filename with a full path and file to override the default layout on startup
-crashtest simulate a crash and generate an error log for support purposes
-nocrashhandler supress use of the application’s crashhandler
-render filename Replace filename with a CINEMA 4D project file to render. You must include the full path to the file. If you don’t specify additional flags, the render settings saved with the file will be used.
-frame from [to [step]] Replace from and to with start and end frame numbers to override the file’s render settings. If only one value is given, a single frame is rendered. If a step value is given, every nth frame will be rendered.
-oimage imagename Replace imagename with a full path to override the save path stored in the file. The frame number will be automatically appended for sequenced renders.
-omultipass imagename Replace imagename with a full path to override the multipass save path stored in the file. The frame number and pass name will be automatically appended for sequenced renders.
-oformat imageformat Replace imageformat with TIFF, TGA, BMP, IFF, JPG, PICT, PSD, RLA, RPF, B3D to override the save format stored in the project file.
-oresolution width height Replace width and height with the desired pixel resolution to override the render resolution stored in the project file.
-threads threadcnt Replace threadcnt with the desired number of render threads. A value of 0 automatically uses the optimal thread count for the system. Any other number specifies the exact number of threads to use.
-license [ip [port]] Can be used instead of a license.ini to connect to a specified license server
-oglversion=xxx Force a specific OpenGL version. xxx must bi 100 * major version + minor version, e.g. 210
-oglmultithreading=x enable or disable OpenGL multithreading. (x=0: unchanged, x=1: disable, x=2: enable) nVidia only

Examples

Basic rendering:

"C:\Program Files\MAXON\Cinema 4D R16\Commandline.exe" %userprofile%\Desktop\test.c4d -frame 0 0 -oimage %userprofile%\Desktop\test -omultipass %userprofile%\Desktop\test_mp -oformat TIFF