Environment Variables
环境变量
Environment variables can be defined in the following way, e.g., zu make specific directories/files accessible
for various Cinema 4D versions or users.
环境变量可以通过以下方式定义,例如,zu 可以让不同的 Cinema 4D 版本或用户访问特定的目录/文件。
For Windows (environment variables cannot officially be used under macOS due to security reasons):
对于 Windows (由于安全原因,环境变量不能在 macOS 下正式使用) :
The following environment variables are available:
下列环境变量可用:
- C4D_BROWSERLIBS 4d browserlibs: Set a path like : 设置一个路径c:\Libraries C: 图书馆 (or a network path) to make Content Browser libraries accessible.
Make sure that multiple users don’t have write permission for these libraries since this can result in faulty
libraries. (或网络路径) ,使内容浏览器库可访问。确保多个用户没有这些库的写权限,因为这可能导致错误的库
- g_additionalModulePath 2.2.1: Set a path like : 设置一个路径c:\plugins 插件 (or a network path) to load plugins that lie outside of the
Cinema 4D program directory (with the introduction of Cinema 4D R20, this can be done comforably in
the Preferences menu). (或者一个网络路径)来加载 Cinema 4D 程序目录之外的插件(通过 Cinema 4D R20的引入,这可以在 Preferences 菜单中舒适地完成)
- g_prefspath 普里菲斯: Here you can define a path to which user-specific files (e.g.,
layout, user preferences, etc.) to a custom directory instead of to a standard user directory. : 这里您可以定义一个路径,将特定于用户的文件(例如,布局、用户首选项等)指向自定义目录,而不是指向标准用户目录
- C4D_SCRIPTS_DIR 4D scripts _ dir: Set a path like : 设置一个路径c:\scripts C: scripts (or a
network path) to load Python scripts in any Cinema 4D version. (或网络路径)加载 Python 脚本在任何C4D 版本
Multiple paths can be separated using a semicolon (;).
可以使用分号(;)分隔多个路径。
Tip:
提示:
Variables that begin with 开头的变量g_ 天啊 can also be used as command line arguments.
也可以用作命令行参数