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_PAINTLAYER_BLEND in BPlayer

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

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

Resource File Code (BPlayer.res)


LONG  ID_PAINTLAYER_BLEND
{
                        
    CYCLE 
    {         LAYER_PASSFOLDER; 
        -1; 
        LAYER_NORMAL; 
        LAYER_DISSOLVE; 
        0; 
        LAYER_DARKEN; 
        LAYER_MULTIPLY; 
        LAYER_COLORBURN; 
        LAYER_LINEARBURN; 
        0; 
        LAYER_LIGHTEN; 
        LAYER_SCREEN; 
        LAYER_COLORDODGE; 
        LAYER_LINEARDODGE; 
        LAYER_ADD; 
        0; 
        LAYER_OVERLAY; 
        LAYER_SOFTLIGHT; 
        LAYER_HARDLIGHT; 
        LAYER_STAMP; 
        LAYER_PINLIGHT; 
        LAYER_HARDMIX; 
        0; 
        LAYER_DIFFERENCE; 
        LAYER_EXCLUSION; 
        LAYER_REFLECT; 
        LAYER_NEGATION; 
        LAYER_GLOW; 
        LAYER_AVERAGE; 
        LAYER_FREEZE; 
        LAYER_HEAT; 
    }
}
            

Header File Code (BPlayer.h)

#ifndef BPLAYER_H__
#define BPLAYER_H__
enum
{
  ID_PAINTLAYER_BLEND = 1000,  //First ID should start at 1000
    LAYER_PASSFOLDER = 1,
    -1 = 2,
    LAYER_NORMAL = 3,
    LAYER_DISSOLVE = 4,
    0 = 5,
    LAYER_DARKEN = 6,
    LAYER_MULTIPLY = 7,
    LAYER_COLORBURN = 8,
    LAYER_LINEARBURN = 9,
    0 = 10,
    LAYER_LIGHTEN = 11,
    LAYER_SCREEN = 12,
    LAYER_COLORDODGE = 13,
    LAYER_LINEARDODGE = 14,
    LAYER_ADD = 15,
    0 = 16,
    LAYER_OVERLAY = 17,
    LAYER_SOFTLIGHT = 18,
    LAYER_HARDLIGHT = 19,
    LAYER_STAMP = 20,
    LAYER_PINLIGHT = 21,
    LAYER_HARDMIX = 22,
    0 = 23,
    LAYER_DIFFERENCE = 24,
    LAYER_EXCLUSION = 25,
    LAYER_REFLECT = 26,
    LAYER_NEGATION = 27,
    LAYER_GLOW = 28,
    LAYER_AVERAGE = 29,
    LAYER_FREEZE = 30,
    LAYER_HEAT = 31,
};
#endif	// BPLAYER_H__

String File Code (BPlayer.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ID_PAINTLAYER_BLEND    "BlendMode";
    LAYER_PASSFOLDER    "PassThrough";
    -1    "";
    LAYER_NORMAL    "Normal";
    LAYER_DISSOLVE    "Dissolve";
    0    "";
    LAYER_DARKEN    "Darken";
    LAYER_MULTIPLY    "Multiply";
    LAYER_COLORBURN    "ColorBurn";
    LAYER_LINEARBURN    "LinearBurn";
    0    "";
    LAYER_LIGHTEN    "Lighten";
    LAYER_SCREEN    "Screen";
    LAYER_COLORDODGE    "ColorDodge";
    LAYER_LINEARDODGE    "LinearDodge";
    LAYER_ADD    "Add";
    0    "";
    LAYER_OVERLAY    "Overlay";
    LAYER_SOFTLIGHT    "SoftLight";
    LAYER_HARDLIGHT    "HardLight";
    LAYER_STAMP    "LinearLight(Stamp)";
    LAYER_PINLIGHT    "PinLight";
    LAYER_HARDMIX    "HardMix";
    0    "";
    LAYER_DIFFERENCE    "Difference";
    LAYER_EXCLUSION    "Exclusion";
    LAYER_REFLECT    "Reflect";
    LAYER_NEGATION    "Negation";
    LAYER_GLOW    "Glow";
    LAYER_AVERAGE    "Average";
    LAYER_FREEZE    "Freeze";
    LAYER_HEAT    "Heat";
}