Arnold render can be executed from the Cinema 4D Command Line as well. Make sure Arnold is the active renderer in the render settings when you save your scene, then run the render command, as you'd normally do.
Commandline.exe -render myscene.c4d -frame 0 100 -oimage myimage.exr -oformat exr
There are some Arnold specific arguments available:
- -arnoldDevice [cpu|gpu]: overrides the Render device of the scene.
- -arnoldLogLevel [level]: overrides the Arnold log level of the scene. The available values are the following:
- 0: Errors
- 1: Warnings
- 2: Info
- 3: Debug
- -arnoldLogFile [path]: writes the Arnold log to the given file.
- -arnoldLogToConsole [true|false|on|off]: enables/disables logging to the console output.
-arnoldAbortOnLicenseFail [true|false|on|off]: aborts the render on license fail when turned on.
- -arnoldSkipLicenseCheck [true|false|on|off]: does not check for a valid license and renders with watermark when turned on.
For example, the following command outputs the Arnold debug log to /path/to/myscene.log:
Commandline.exe -render myscene.c4d -frame 0 100 -oimage myimage.exr -oformat exr -arnoldLogLevel 3 -arnoldLogFile "/path/to/myscene.log"
Scene Export
Scene export can be executed from the command line as well via the -arnoldSceneExport parameter followed by the export options. The following options are available: For example, the following command exports frame range 10-20 of myscene.c4d to myscene.ass: Note that on Windows the export is executed in the background, therefore, you have no output in the console. You can redirect the output to a file using the > directive as follows:Commandline.exe -arnoldSceneExport "scene=c:\path\to\myscene.c4d;format=ASS;filename=c:\path\to\myscene.ass;startFrame=10;endFrame=20"
Commandline.exe -arnoldSceneExport "scene=c:\path\to\myscene.c4d;format=ASS;filename=c:\path\to\myscene.ass;startFrame=10;endFrame=20" > export.log 2>&1
Bake Texture
Baking textures from the command line requires the -arnoldBakeTexture parameter followed by the bake options.
The following options are available:
- outputDir: Path of the output folder where baked textures are saved. This parameter is mandatory.
- format: Output texture file format (exr, png, jpeg or tif). Default is exr.
- resolution: Output texture resolution. Default is 512.
- object: Name of the object in the scene (e.g. Sphere).
- material: Name of the material in the scene used as an override. (optional)
- filter: The filter type used for averaging individual subpixel samples into a final pixel color. More information can be found here. Default is gaussian_filter.
- aovs: List of AOVs to bake, separated by ';' (e.g. beauty;diffuse_direct). Default is beauty.
- uvset: Name of the custom UV set used instead of the default UVs. (optional)
- polygonSelectionOff: If given, polygon selections are skipped.
- cameraAA: Anti-aliasing quality. More information can be found here. Default is 3.
- uOffset: Offset applied on the U coordinates. (optional)
- vOffset: Offset applied on the V coordinates. (optional)
- uScale: Scale applied on the U coordinates. (optional)
- vScale: Scale applied on the V coordinates. (optional)
- surfaceOffset: Precision factor that is currently needed to perform the baking. This value depends on the scale of the scene, and artefacts can appear if it's not set properly. Default is 0.001.
- extendEdgesOff: If given, extends edges are disabled and black borders appearing in UV seams.
- startFrame: Specifies the start frame in case of baking an animated texture. (optional)
- endFrame: Specifies the end frame in case of baking an animated texture. (optional)
- stepFrame: Specifies the frame step in case of baking an animated texture. (optional)