Here you will find documentation on all the descriptions that Cinema 4D currently has. You can list them Alphabetically, by Type or Plugin . The sample Python and C++ code is automatically generated and in some cases may not be 100% correct. If something doesn't work then please refer to the official Cinema 4D SDK documentation for more information.

Element Information

Sample Code

Example code for the id ID_FIELDLAYER_BLENDINGMODE in FLbase

Note that this is not the actual code from the FLbase file.

This code is just an example to show you how to add a similar control to your own description.

Resource File Code (FLbase.res)


LONG  ID_FIELDLAYER_BLENDINGMODE
{
                        
    CYCLE 
    {         ID_FIELDLAYER_BLENDINGMODE_NORMAL; 
        -1; 
        ID_FIELDLAYER_BLENDINGMODE_DARKEN; 
        ID_FIELDLAYER_BLENDINGMODE_TRUESUBTRACT; 
        ID_FIELDLAYER_BLENDINGMODE_MULTIPLY; 
        -1; 
        ID_FIELDLAYER_BLENDINGMODE_OVERLAY; 
        -1; 
        ID_FIELDLAYER_BLENDINGMODE_LIGHTEN; 
        ID_FIELDLAYER_BLENDINGMODE_ADD; 
        ID_FIELDLAYER_BLENDINGMODE_SCREEN; 
        -1; 
        ID_FIELDLAYER_BLENDINGMODE_LAYERMASK; 
    }
}
            

Header File Code (FLbase.h)

#ifndef FLBASE_H__
#define FLBASE_H__
enum
{
  ID_FIELDLAYER_BLENDINGMODE = 1000,  //First ID should start at 1000
    ID_FIELDLAYER_BLENDINGMODE_NORMAL = 1,
    -1 = 2,
    ID_FIELDLAYER_BLENDINGMODE_DARKEN = 3,
    ID_FIELDLAYER_BLENDINGMODE_TRUESUBTRACT = 4,
    ID_FIELDLAYER_BLENDINGMODE_MULTIPLY = 5,
    -1 = 6,
    ID_FIELDLAYER_BLENDINGMODE_OVERLAY = 7,
    -1 = 8,
    ID_FIELDLAYER_BLENDINGMODE_LIGHTEN = 9,
    ID_FIELDLAYER_BLENDINGMODE_ADD = 10,
    ID_FIELDLAYER_BLENDINGMODE_SCREEN = 11,
    -1 = 12,
    ID_FIELDLAYER_BLENDINGMODE_LAYERMASK = 13,
};
#endif	// FLBASE_H__

String File Code (FLbase.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ID_FIELDLAYER_BLENDINGMODE    "LayerBlending";
    ID_FIELDLAYER_BLENDINGMODE_NORMAL    "Normal";
    -1    "";
    ID_FIELDLAYER_BLENDINGMODE_DARKEN    "Min";
    ID_FIELDLAYER_BLENDINGMODE_TRUESUBTRACT    "Subtract";
    ID_FIELDLAYER_BLENDINGMODE_MULTIPLY    "Multiply";
    -1    "";
    ID_FIELDLAYER_BLENDINGMODE_OVERLAY    "Overlay";
    -1    "";
    ID_FIELDLAYER_BLENDINGMODE_LIGHTEN    "Max";
    ID_FIELDLAYER_BLENDINGMODE_ADD    "Add";
    ID_FIELDLAYER_BLENDINGMODE_SCREEN    "Screen";
    -1    "";
    ID_FIELDLAYER_BLENDINGMODE_LAYERMASK    "Clip";
}