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_SPLINE_MODE in MGspline

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

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

Resource File Code (MGspline.res)


LONG  MG_SPLINE_MODE
{
                        
    CYCLE 
    {         MG_SPLINE_MODE_COUNT; 
        MG_SPLINE_MODE_STEP; 
        MG_SPLINE_MODE_EVEN; 
        MG_SPLINE_MODE_VERTEX; 
        MG_SPLINE_MODE_AXIS; 
        MG_SPLINE_MODE_GROUP1; 
        MG_SPLINE_MODE_GROUP2; 
        MG_SPLINE_MODE_GROUP3; 
        MG_SPLINE_MODE_GROUP4; 
    }
}
            

Header File Code (MGspline.h)

#ifndef MGSPLINE_H__
#define MGSPLINE_H__
enum
{
  MG_SPLINE_MODE = 1000,  //First ID should start at 1000
    MG_SPLINE_MODE_COUNT = 1,
    MG_SPLINE_MODE_STEP = 2,
    MG_SPLINE_MODE_EVEN = 3,
    MG_SPLINE_MODE_VERTEX = 4,
    MG_SPLINE_MODE_AXIS = 5,
    MG_SPLINE_MODE_GROUP1 = 6,
    MG_SPLINE_MODE_GROUP2 = 7,
    MG_SPLINE_MODE_GROUP3 = 8,
    MG_SPLINE_MODE_GROUP4 = 9,
};
#endif	// MGSPLINE_H__

String File Code (MGspline.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  MG_SPLINE_MODE    "Distribution";
    MG_SPLINE_MODE_COUNT    "Count";
    MG_SPLINE_MODE_STEP    "Step";
    MG_SPLINE_MODE_EVEN    "Even";
    MG_SPLINE_MODE_VERTEX    "Vertex";
    MG_SPLINE_MODE_AXIS    "Axis";
    MG_SPLINE_MODE_GROUP1    "Group1";
    MG_SPLINE_MODE_GROUP2    "Group2";
    MG_SPLINE_MODE_GROUP3    "Group3";
    MG_SPLINE_MODE_GROUP4    "Group4";
}