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 XGROUP_DISPLAY in Oxgroup

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

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

Resource File Code (Oxgroup.res)


LONG  XGROUP_DISPLAY
{
                        
    CYCLE 
    {         XGDISPLAY_DOT; 
        XGDISPLAY_TICK; 
        XGDISPLAY_AXIS; 
        XGDISPLAY_BOX; 
        XGDISPLAY_BOX3D; 
        XGDISPLAY_BOX3D_FILLED; 
        XGDISPLAY_SPHERE; 
        XGDISPLAY_LINE; 
        XGDISPLAY_CIRCLE; 
        XGDISPLAY_CIRCLE_FILLED; 
        XGDISPLAY_PYRAMID; 
        XGDISPLAY_ARROW; 
        XGDISPLAY_ARROW_FILLED; 
        XGDISPLAY_PLANE; 
        XGDISPLAY_PLANE_FILLED; 
        XGDISPLAY_NONE; 
    }
}
            

Header File Code (Oxgroup.h)

#ifndef OXGROUP_H__
#define OXGROUP_H__
enum
{
  XGROUP_DISPLAY = 1000,  //First ID should start at 1000
    XGDISPLAY_DOT = 1,
    XGDISPLAY_TICK = 2,
    XGDISPLAY_AXIS = 3,
    XGDISPLAY_BOX = 4,
    XGDISPLAY_BOX3D = 5,
    XGDISPLAY_BOX3D_FILLED = 6,
    XGDISPLAY_SPHERE = 7,
    XGDISPLAY_LINE = 8,
    XGDISPLAY_CIRCLE = 9,
    XGDISPLAY_CIRCLE_FILLED = 10,
    XGDISPLAY_PYRAMID = 11,
    XGDISPLAY_ARROW = 12,
    XGDISPLAY_ARROW_FILLED = 13,
    XGDISPLAY_PLANE = 14,
    XGDISPLAY_PLANE_FILLED = 15,
    XGDISPLAY_NONE = 16,
};
#endif	// OXGROUP_H__

String File Code (Oxgroup.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XGROUP_DISPLAY    "EditorDisplay";
    XGDISPLAY_DOT    "Dots";
    XGDISPLAY_TICK    "Ticks";
    XGDISPLAY_AXIS    "Axes";
    XGDISPLAY_BOX    "Squares";
    XGDISPLAY_BOX3D    "Box";
    XGDISPLAY_BOX3D_FILLED    "Box(Filled)";
    XGDISPLAY_SPHERE    "Spheres";
    XGDISPLAY_LINE    "Lines";
    XGDISPLAY_CIRCLE    "Circle";
    XGDISPLAY_CIRCLE_FILLED    "Circle(Filled)";
    XGDISPLAY_PYRAMID    "Pyramid";
    XGDISPLAY_ARROW    "Arrow";
    XGDISPLAY_ARROW_FILLED    "Arrow(Filled)";
    XGDISPLAY_PLANE    "Plane";
    XGDISPLAY_PLANE_FILLED    "Plane(Filled)";
    XGDISPLAY_NONE    "None";
}