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_MGSELECTTOOL_MODE in Tool_MGSelect

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

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

Resource File Code (Tool_MGSelect.res)


LONG  MDATA_MGSELECTTOOL_MODE
{
                        
    CYCLE 
    {         MDATA_MGSELECTTOOL_FREE; 
        MDATA_MGSELECTTOOL_RECTANGLE; 
        MDATA_MGSELECTTOOL_POLYGON; 
        MDATA_MGSELECTTOOL_RADIAL; 
    }
}
            

Header File Code (Tool_MGSelect.h)

#ifndef TOOL_MGSELECT_H__
#define TOOL_MGSELECT_H__
enum
{
  MDATA_MGSELECTTOOL_MODE = 1000,  //First ID should start at 1000
    MDATA_MGSELECTTOOL_FREE = 1,
    MDATA_MGSELECTTOOL_RECTANGLE = 2,
    MDATA_MGSELECTTOOL_POLYGON = 3,
    MDATA_MGSELECTTOOL_RADIAL = 4,
};
#endif	// TOOL_MGSELECT_H__

String File Code (Tool_MGSelect.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  MDATA_MGSELECTTOOL_MODE    "Mode";
    MDATA_MGSELECTTOOL_FREE    "Brush";
    MDATA_MGSELECTTOOL_RECTANGLE    "Rectangle";
    MDATA_MGSELECTTOOL_POLYGON    "Polygon";
    MDATA_MGSELECTTOOL_RADIAL    "Radial";
}