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_MG_EFFECTORDEFORMER_MODE in Oedeformer_panel

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

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

Resource File Code (Oedeformer_panel.res)


LONG  ID_MG_EFFECTORDEFORMER_MODE
{
                        
    CYCLE 
    {         ID_MG_EFFECTORDEFORMER_MODE_OFF; 
        ID_MG_EFFECTORDEFORMER_MODE_OBJECT; 
        ID_MG_EFFECTORDEFORMER_MODE_POINT; 
        ID_MG_EFFECTORDEFORMER_MODE_POLYGON; 
    }
}
            

Header File Code (Oedeformer_panel.h)

#ifndef OEDEFORMER_PANEL_H__
#define OEDEFORMER_PANEL_H__
enum
{
  ID_MG_EFFECTORDEFORMER_MODE = 1000,  //First ID should start at 1000
    ID_MG_EFFECTORDEFORMER_MODE_OFF = 1,
    ID_MG_EFFECTORDEFORMER_MODE_OBJECT = 2,
    ID_MG_EFFECTORDEFORMER_MODE_POINT = 3,
    ID_MG_EFFECTORDEFORMER_MODE_POLYGON = 4,
};
#endif	// OEDEFORMER_PANEL_H__

String File Code (Oedeformer_panel.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ID_MG_EFFECTORDEFORMER_MODE    "Deformation";
    ID_MG_EFFECTORDEFORMER_MODE_OFF    "Off";
    ID_MG_EFFECTORDEFORMER_MODE_OBJECT    "Object";
    ID_MG_EFFECTORDEFORMER_MODE_POINT    "Point";
    ID_MG_EFFECTORDEFORMER_MODE_POLYGON    "Polygon";
}