Cinema 4D and the Command Line
C4D院和命令行
Starting the Commandline Renderer in conjunction with the Maxon user account
与 Maxon 用户账户一起启动命令行渲染器
When starting the Commandline Renderer for the first time, it must either be connected directly with the Maxon user account or indirectly via the License Server.
当第一次启动 Commandline 渲染器时,它必须要么直接连接到 Maxon 用户帐户,要么通过 License Server 间接连接。
The following dialog window will open:
将打开以下对话框窗口:
Depending on what is selected here, the same information (this will be requested here) that you normally have to enter when using Cinema 4D normally. This information is:
根据这里选择的内容,您通常在使用 Cinema 4D 时必须输入的相同信息(这里将要求输入)。这些信息是:
After licensing has been completed, the Commandline Renderer can be used.
在许可完成后,可以使用 Commandline 渲染器。
Starting Cinema 4D via the Command Line
通过命令行启动C4D院
Cinema 4D can be started via the command line. This is useful if you want to control render functions using other software (e.g., render farm software). A Windows system is used in the example described below (references for Macintosh users are listed subsequently).
C4D可以通过命令行启动。如果您想使用其他软件(例如,渲染农场软件)来控制渲染函数,这是非常有用的。在下面描述的示例中使用了 Windows 系统(后面列出了对 Macintosh 用户的引用)。
G
Enter the following to start Cinema 4D via the command line ( If a path or file name contains spaces it can help to enclose them in quotation marks):
通过命令行输入以下命令启动 Cinema 4D (如果路径或文件名中包含空格,可以用引号将其括起来) :
c:\programs\\Cinema 4D\Commandline.exe
4D Commandline.exe
Tip: 提示:For c:\Programme\\Cinema 4D\ enter your individual path to the executable file.
对于 c: Programme Cinema 4D,输入到可执行文件的个人路径。
- 渲染
Example: c:\programs\\Cinema 4D\Commandline.exe -renderc:\scenes\hajopei.c4d
例如: c: programs Cinema 4D Commandline.exe-renderc: scenes hajopei.c4d
This command will render the scene hajopei.c4d, located in the c:\scenes directory. The render settings already defined in Cinema 4D will be used.
该命令将呈现位于 c: scenes 目录中的场景 hajopei.c4d。在Cinema 4d 中已经定义的渲染设置将被使用。
- 服用
Example: c:\Programme\\Cinema 4D\Commandline.exe -render c:\Szenen\hajopei.c4d -take front
例如: c: 程序 Cinema 4D Commandline.exe-render c: Szenen hajopei.c4d-take front
This command renders a specific Take. In this example it’s the Take named ,front’.
这个命令呈现一个特定的 Take。
- 框架
Example: c:\programs\\Cinema 4D\Commandline.exe -render c:\scenes\hajopei.c4d -frame 100 150 10
例如: c: programs Cinema 4D Commandline.exe-render c: scenes hajopei.c4d-frame 10015010
This command will render every 10th frame from frame 100 to 150. If 150 and 10 were not included in the command line, only frame 100 would be rendered. This command will override any scene settings.
这个命令将呈现每10帧从帧100到150。如果命令行中没有包含150和10,则只会呈现帧100。此命令将覆盖任何场景设置。
图像
Example: c:\programs\\Cinema 4D\Commandline.exe -renderc:\scenes\hajopei.c4d -oimage d:\images\framename
例如: c: programs Cinema 4D Commandline.exe-renderc: scenes hajopei.c4d-oimage d: images framename
This will overwrite the save path for the scene file hajopei.c4d and render to the d:\images directory. The files will be named according to framename. Sequential frame numbers will be added automatically.
这将覆盖场景文件 hajopei.c4d 的保存路径,并将其呈现到 d: images 目录。这些文件将根据框架名称命名。序列帧号将自动添加。
- omultipass
Example: c:\programs\\Cinema 4D\Commandline.exe -renderc:\scenes\hajopei.c4d -omultipass c:\mp\passes.psd
例如: c: programs Cinema 4D Commandline.exe-renderc: scenes hajopei.c4d-omultipass c: mp passes.psd
This will overwrite the scene’s Multi-Pass path and save the Multi-Pass to the c:\mp\ directory. Sequential frame numbers and Multi-Pass names will be added automatically.
这将覆盖场景的 Multi-Pass 路径,并将 Multi-Pass 保存到 c: mp 目录。连续帧号码和多通道名称将自动添加。
格式
Example: c:\programs\\Cinema 4D\Commandline.exe -renderc:\scenes\hajopei.c4d -oformat JPG
例如: c: programs Cinema 4D Commandline.exe-renderc: scenes hajopei.c4d-oformat JPG
- oformat JPG
The output format defined in the scene file itself can be replaced with one of the following formats: TIFF, TGA, BMP, IFF, JPG, PICT, PSE, RLA, RPF, B3D.
场景文件本身定义的输出格式可以替换为以下格式之一: TIFF、 TGA、 BMP、 IFF、 JPG、 PICT、 PSE、 RLA、 RPF、 B3D。
- 分辨率
Example: c:\programs\\Cinema 4D\Commandline.exe -renderc:\scenes\hajopei.c4d -oresolution 800 600
例如: c: programs Cinema 4D Commandline.exe-renderc: scenes hajopei.c4d-oresolution 800600
This will overwrite the render size as defined in the hajopei.c4d scene file. In this case the render output will have a resolution of 800 x 600.
这将覆盖在 hajopei.c4d 场景文件中定义的渲染大小。在这种情况下,渲染输出的分辨率为800 x 600。
- 线
Example: c:\programs\\Cinema 4D\Commandline.exe -renderc:\scenes\hajopei.c4d -threads 2
例如: c: programs Cinema 4D Commandline.exe-renderc: scenes hajopei.c4d-threads 2
This defines the number of threads. 0 is the optimal number of threads.
这定义了线程的数量。0是线程的最佳数量。
日志文件 = [ string ]
Example: c:\Programs\\Cinema 4D\Commandline.exe - render c\Scenes\hajopei.c4d g_logfile= c:\Report.txt
例如: c: Programs Cinema 4D Commandline.exe-render c Scenes hajopei.c4d g _ logfile = c: Report.txt
All information regarding render progress will be saved in a file on the hard drive (in this case Report.txt on your c: drive).
所有关于渲染进度的信息都将保存在硬盘驱动器上的一个文件中(在本例中是 c: 驱动器上的 Report.txt)。
The following commands, with the exception of -help, are less useful when using the Commandline option and only have a function if the Cinema 4D executable file iw used with the options described.
除了-help 之外,下面的命令在使用 Commandline 选项时没有那么有用,只有当 Cinema 4D 可执行文件 iw 与所描述的选项一起使用时才具有函数。
- 救命
Launches a brief description of supported commands
启动受支持命令的简短描述
- 最小视窗
Cinema 4D starts with minimum viewport options.
C4D从最小视窗选项开始。
- nogui
Starts Cinema 4D without a GUI (interface).
启动没有图形用户界面的4D 电影。
Tip: 提示:- 标题
Windows only: c:\programs\\Cinema 4D\Cinema 4D.exe -title Name
仅适用于 Windows: c: 程序 Cinema 4D Cinema 4D.exe-片名
This command assigns a name to a Cinema 4D window. This name will be displayed at the top left of the Cinema 4D window and in the task bar. This makes locating one of several open instances of Cinema 4D much easier using Alt+tab.
此命令为 Cinema 4D 窗口分配一个名称。此名称将显示在左上角的Cinema 4D 窗口和任务栏。这使得定位 Cinema 4D 的几个开放实例之一更容易使用 Alt + tab。
- 布局
Example: c:\Programme\\Cinema 4D\Cinema 4D.exe -layoutc:\Programme\\Cinema 4D\library\layout\Modeling.l4d
例如: c: 节目Cinema 4D Cinema 4D.exe-布局 c: 节目Cinema 4D 图书馆布局模式 l4d
Use this command to load a specific layout when starting Cinema 4D.
当启动 Cinema 4D 时,使用此命令加载特定的布局。
许可证[港口]
Example: c:\Programs\\Cinema 4D\CNEMA 4D.exe -licence 192.168.30.15 5235
例如: c: Programs Cinema 4D CNEMA 4D.exe-licence 192.168.30.155235
This lets you start program instances that access the License Server (if the server has also been started as a command line instance) or the RLM server (enter the host name instead of the IP address).
这允许您启动访问许可证服务器(如果服务器也作为命令行实例启动)或 RLM 服务器(输入主机名而不是 IP 地址)的程序实例。
The syntax for paths on Macs looks somewhat different. The executable Cinema 4D file can be launched directly from a console window:
Mac 上路径的语法看起来有些不同。可执行的 Cinema 4D 文件可以直接从控制台窗口启动:
1. Right-click on the Cinema 4D.app startup file in your installation directory and select Show Package Contents.
1. 右键单击安装目录中的 Cinema 4D. app 启动文件,然后选择 Show Package Contents。
2. Switch to the contents/macOS directory.
2. 切换到 contents/macOS 目录。
3. Drag the Cinema 4D file into the terminal window. The correct path will automatically be used.
3. 拖动C4D 文件到终端窗口。正确的路径将自动使用。
4. Enter the desired commands (e.g., -render, -nogui, etc.)
4. 输入想要的命令(例如,-render,-nogui 等)
5. Drag the scene file to be rendered into the terminal window. Make sure the path is correct.
5. 拖动场景文件到终端窗口中渲染。确保路径正确。
Cinema 4D Commandline Installation
Cinema 4D 命令线安装
Installation guide MAXON License Server on GNU/Linux
GNU/Linux 环境下 MAXON 许可证服务器的安装指南