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_AXIS_MODE in ToolModelingAxis

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

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

Resource File Code (ToolModelingAxis.res)


LONG  MDATA_AXIS_MODE
{
                        
    CYCLE 
    {         MDATA_AXIS_MODE_WORLD; 
        MDATA_AXIS_MODE_OBJECT; 
        MDATA_AXIS_MODE_SELECTED; 
        MDATA_AXIS_MODE_ROOT; 
        MDATA_AXIS_MODE_PARENT; 
        MDATA_AXIS_MODE_BOUNDS; 
        MDATA_AXIS_MODE_POINTS; 
        MDATA_AXIS_MODE_CAMERA; 
        MDATA_AXIS_MODE_FREE; 
    }
}
            

Header File Code (ToolModelingAxis.h)

#ifndef TOOLMODELINGAXIS_H__
#define TOOLMODELINGAXIS_H__
enum
{
  MDATA_AXIS_MODE = 1000,  //First ID should start at 1000
    MDATA_AXIS_MODE_WORLD = 1,
    MDATA_AXIS_MODE_OBJECT = 2,
    MDATA_AXIS_MODE_SELECTED = 3,
    MDATA_AXIS_MODE_ROOT = 4,
    MDATA_AXIS_MODE_PARENT = 5,
    MDATA_AXIS_MODE_BOUNDS = 6,
    MDATA_AXIS_MODE_POINTS = 7,
    MDATA_AXIS_MODE_CAMERA = 8,
    MDATA_AXIS_MODE_FREE = 9,
};
#endif	// TOOLMODELINGAXIS_H__

String File Code (ToolModelingAxis.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  MDATA_AXIS_MODE    "Axis";
    MDATA_AXIS_MODE_WORLD    "World";
    MDATA_AXIS_MODE_OBJECT    "Object";
    MDATA_AXIS_MODE_SELECTED    "Selected";
    MDATA_AXIS_MODE_ROOT    "Root";
    MDATA_AXIS_MODE_PARENT    "Parent";
    MDATA_AXIS_MODE_BOUNDS    "Bounds";
    MDATA_AXIS_MODE_POINTS    "Points";
    MDATA_AXIS_MODE_CAMERA    "Camera";
    MDATA_AXIS_MODE_FREE    "Free";
}