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_ROT 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_ROT
{
                        
    CYCLE 
    {         MDATA_AXIS_ROT_AXIS; 
        MDATA_AXIS_ROT_WORLD; 
        MDATA_AXIS_ROT_OBJECT; 
        MDATA_AXIS_ROT_ROOT; 
        MDATA_AXIS_ROT_PARENT; 
        MDATA_AXIS_ROT_NORMALS; 
        MDATA_AXIS_ROT_CAMERA; 
    }
}
            

Header File Code (ToolModelingAxis.h)

#ifndef TOOLMODELINGAXIS_H__
#define TOOLMODELINGAXIS_H__
enum
{
  MDATA_AXIS_ROT = 1000,  //First ID should start at 1000
    MDATA_AXIS_ROT_AXIS = 1,
    MDATA_AXIS_ROT_WORLD = 2,
    MDATA_AXIS_ROT_OBJECT = 3,
    MDATA_AXIS_ROT_ROOT = 4,
    MDATA_AXIS_ROT_PARENT = 5,
    MDATA_AXIS_ROT_NORMALS = 6,
    MDATA_AXIS_ROT_CAMERA = 7,
};
#endif	// TOOLMODELINGAXIS_H__

String File Code (ToolModelingAxis.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  MDATA_AXIS_ROT    "Orientation";
    MDATA_AXIS_ROT_AXIS    "Axis";
    MDATA_AXIS_ROT_WORLD    "World";
    MDATA_AXIS_ROT_OBJECT    "Object";
    MDATA_AXIS_ROT_ROOT    "Root";
    MDATA_AXIS_ROT_PARENT    "Parent";
    MDATA_AXIS_ROT_NORMALS    "Normal";
    MDATA_AXIS_ROT_CAMERA    "Camera";
}