Cinema 4D Basic Features Render Menu Edit Render Settings Save
Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D

Variable Path and File Names ("Tokens")

Variable path and file names (Tokens) can be used in the following locations when saving renderings:

What is a Token used for? Tokens are simple text variables used in path and file names. When rendered or displayed in the Picture Viewer they will be replaced by project attributes such as project name, camera currently being used, which take, etc.

Example

The following example should shed some light on how this works:

Note the file path in the above image: Results/$take/$rs. The variables $take and $rs (a list with all available Tokens can be found below) are Tokens. A file path’s last Token (here $rs for the render setting name) is always the file name and preceding Tokens (in this example $take for the take name) represent directory names. These do not have to be pre-existing directories! Cinema 4D will create them if they do not already exist.

On the right side of the above image, 12 takes are marked in the Attribute Manager window that have various names and different render settings (which are marked on the left (Small Resolution, Normal Resolution and Large Resolution). If all 12 takes are rendered, each directory name ($take) would be replaced by the take name (e.g., Analog) and the rendered image saved at that location. The image’s file name ($rs) will also be replaced by the name of the respective render setting.

Tokens

The following Tokens can be used:

Object channel refers to the Compositing tag’s Object Channels that are used to render Alpha channels of specific objects as separate Multi-Passes.

These Tokens, which can also be used in combination with any series of characters (e.g., Camera_$cameraXY1), can be used to create complex directory structures. Especially in combination with the Take function (see Take Manager), which makes various project states at the point of rendering available, ,procedural’ file and path names can be generated, which, for example, generate directories named in accordance with the file name. Subsequent re-rendering will not overwrite existing paths/files, which is a handy feature when working with complex projects (of course the Token system also works with multi-passes).

Note that multi-pass file names already contain their own names, which causes numerous seemingly superfluous Tokens such as $pass or $userpass to appear. However, these can also be used to name directories.