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 MG_GRID_TYPE in MGgridarray

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

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

Resource File Code (MGgridarray.res)


LONG  MG_GRID_TYPE
{
                        
    CYCLE 
    {         MG_GRID_TYPE_CUBIC; 
        MG_GRID_TYPE_SPHERE; 
        MG_GRID_TYPE_TUBE; 
        MG_GRID_TYPE_OBJECT; 
    }
}
            

Header File Code (MGgridarray.h)

#ifndef MGGRIDARRAY_H__
#define MGGRIDARRAY_H__
enum
{
  MG_GRID_TYPE = 1000,  //First ID should start at 1000
    MG_GRID_TYPE_CUBIC = 1,
    MG_GRID_TYPE_SPHERE = 2,
    MG_GRID_TYPE_TUBE = 3,
    MG_GRID_TYPE_OBJECT = 4,
};
#endif	// MGGRIDARRAY_H__

String File Code (MGgridarray.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  MG_GRID_TYPE    "Form";
    MG_GRID_TYPE_CUBIC    "Cubic";
    MG_GRID_TYPE_SPHERE    "Sphere";
    MG_GRID_TYPE_TUBE    "Cylinder";
    MG_GRID_TYPE_OBJECT    "Object";
}