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 DISPLAYTAG_SDISPLAYMODE in Tdisplay

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

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

Resource File Code (Tdisplay.res)


LONG  DISPLAYTAG_SDISPLAYMODE
{
                        
    CYCLE 
    {         DISPLAYTAG_SDISPLAY_GOURAUD; 
        DISPLAYTAG_SDISPLAY_GOURAUD_WIRE; 
        DISPLAYTAG_SDISPLAY_QUICK; 
        DISPLAYTAG_SDISPLAY_QUICK_WIRE; 
        DISPLAYTAG_SDISPLAY_FLAT; 
        DISPLAYTAG_SDISPLAY_FLAT_WIRE; 
        DISPLAYTAG_SDISPLAY_HIDDENLINE; 
        DISPLAYTAG_SDISPLAY_NOSHADING; 
    }
}
            

Header File Code (Tdisplay.h)

#ifndef TDISPLAY_H__
#define TDISPLAY_H__
enum
{
  DISPLAYTAG_SDISPLAYMODE = 1000,  //First ID should start at 1000
    DISPLAYTAG_SDISPLAY_GOURAUD = 1,
    DISPLAYTAG_SDISPLAY_GOURAUD_WIRE = 2,
    DISPLAYTAG_SDISPLAY_QUICK = 3,
    DISPLAYTAG_SDISPLAY_QUICK_WIRE = 4,
    DISPLAYTAG_SDISPLAY_FLAT = 5,
    DISPLAYTAG_SDISPLAY_FLAT_WIRE = 6,
    DISPLAYTAG_SDISPLAY_HIDDENLINE = 7,
    DISPLAYTAG_SDISPLAY_NOSHADING = 8,
};
#endif	// TDISPLAY_H__

String File Code (Tdisplay.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  DISPLAYTAG_SDISPLAYMODE    "ShadingMode";
    DISPLAYTAG_SDISPLAY_GOURAUD    "GouraudShading";
    DISPLAYTAG_SDISPLAY_GOURAUD_WIRE    "GouraudShading(Lines)";
    DISPLAYTAG_SDISPLAY_QUICK    "QuickShading";
    DISPLAYTAG_SDISPLAY_QUICK_WIRE    "QuickShading(Lines)";
    DISPLAYTAG_SDISPLAY_FLAT    "ConstantShading";
    DISPLAYTAG_SDISPLAY_FLAT_WIRE    "ConstantShading(Lines)";
    DISPLAYTAG_SDISPLAY_HIDDENLINE    "HiddenLine";
    DISPLAYTAG_SDISPLAY_NOSHADING    "Lines";
}