Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D
Environment variables can be defined in the following way, e.g., zu make specific directories/files accessible for various Cinema 4D versions or users.
For Windows (environment variables cannot officially be used under MacOS due to security reasons):
The following environment variables are available:
- C4D_BROWSERLIBS: Set a path like c:\Libraries (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: 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).
C4D_SCRIPTS_DIR: Set a path like c:\scripts (or a network path) to load Python or C.O.F.F.E.E scripts in any Cinema 4D version.
- 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.
Multiple paths can be separated using a semicolon (;).
Variables that begin with g_ can also be used as command line arguments.