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 MDATA_SPLINE_PROJECT_MODE in ToolSplineProject

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

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

Resource File Code (ToolSplineProject.res)


LONG  MDATA_SPLINE_PROJECT_MODE
{
                        
    CYCLE 
    {         MDATA_SPLINE_PROJECT_MODE_VIEW; 
        MDATA_SPLINE_PROJECT_MODE_XY; 
        MDATA_SPLINE_PROJECT_MODE_ZY; 
        MDATA_SPLINE_PROJECT_MODE_XZ; 
        MDATA_SPLINE_PROJECT_MODE_X_AXIS; 
        MDATA_SPLINE_PROJECT_MODE_Y_AXIS; 
        MDATA_SPLINE_PROJECT_MODE_Z_AXIS; 
        MDATA_SPLINE_PROJECT_MODE_SPHERICAL; 
    }
}
            

Header File Code (ToolSplineProject.h)

#ifndef TOOLSPLINEPROJECT_H__
#define TOOLSPLINEPROJECT_H__
enum
{
  MDATA_SPLINE_PROJECT_MODE = 1000,  //First ID should start at 1000
    MDATA_SPLINE_PROJECT_MODE_VIEW = 1,
    MDATA_SPLINE_PROJECT_MODE_XY = 2,
    MDATA_SPLINE_PROJECT_MODE_ZY = 3,
    MDATA_SPLINE_PROJECT_MODE_XZ = 4,
    MDATA_SPLINE_PROJECT_MODE_X_AXIS = 5,
    MDATA_SPLINE_PROJECT_MODE_Y_AXIS = 6,
    MDATA_SPLINE_PROJECT_MODE_Z_AXIS = 7,
    MDATA_SPLINE_PROJECT_MODE_SPHERICAL = 8,
};
#endif	// TOOLSPLINEPROJECT_H__

String File Code (ToolSplineProject.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  MDATA_SPLINE_PROJECT_MODE    "Mode";
    MDATA_SPLINE_PROJECT_MODE_VIEW    "View";
    MDATA_SPLINE_PROJECT_MODE_XY    "XYPlane";
    MDATA_SPLINE_PROJECT_MODE_ZY    "ZYPlane";
    MDATA_SPLINE_PROJECT_MODE_XZ    "XZPlane";
    MDATA_SPLINE_PROJECT_MODE_X_AXIS    "XAxis";
    MDATA_SPLINE_PROJECT_MODE_Y_AXIS    "YAxis";
    MDATA_SPLINE_PROJECT_MODE_Z_AXIS    "ZAxis";
    MDATA_SPLINE_PROJECT_MODE_SPHERICAL    "Spherical";
}