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 BRICK_ALTTEX_BLENDMODE in xbrick

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

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

Resource File Code (xbrick.res)


LONG  BRICK_ALTTEX_BLENDMODE
{
                        
    CYCLE 
    {         BRICK_BLENDMODE_NORMAL; 
        BRICK_BLENDMODE_MULTIPLY; 
        BRICK_BLENDMODE_OVERLAY; 
        BRICK_BLENDMODE_DODGE; 
        BRICK_BLENDMODE_BURN; 
        BRICK_BLENDMODE_LIGHTEN; 
        BRICK_BLENDMODE_DARKEN; 
        BRICK_BLENDMODE_COLOR; 
    }
}
            

Header File Code (xbrick.h)

#ifndef XBRICK_H__
#define XBRICK_H__
enum
{
  BRICK_ALTTEX_BLENDMODE = 1000,  //First ID should start at 1000
    BRICK_BLENDMODE_NORMAL = 1,
    BRICK_BLENDMODE_MULTIPLY = 2,
    BRICK_BLENDMODE_OVERLAY = 3,
    BRICK_BLENDMODE_DODGE = 4,
    BRICK_BLENDMODE_BURN = 5,
    BRICK_BLENDMODE_LIGHTEN = 6,
    BRICK_BLENDMODE_DARKEN = 7,
    BRICK_BLENDMODE_COLOR = 8,
};
#endif	// XBRICK_H__

String File Code (xbrick.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  BRICK_ALTTEX_BLENDMODE    "BlendMode";
    BRICK_BLENDMODE_NORMAL    "Normal";
    BRICK_BLENDMODE_MULTIPLY    "Multiply";
    BRICK_BLENDMODE_OVERLAY    "Overlay";
    BRICK_BLENDMODE_DODGE    "Dodge";
    BRICK_BLENDMODE_BURN    "Burn";
    BRICK_BLENDMODE_LIGHTEN    "Lighten";
    BRICK_BLENDMODE_DARKEN    "Darken";
    BRICK_BLENDMODE_COLOR    "Color";
}