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 XPA_EDITOR_PARTICLES in Oxpaction

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

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

Resource File Code (Oxpaction.res)


LONG  XPA_EDITOR_PARTICLES
{
                        
    CYCLE 
    {         XPA_EDITOR_DOT; 
        XPA_EDITOR_TICK; 
        XPA_EDITOR_AXIS; 
        XPA_EDITOR_BOX; 
        XPA_EDITOR_BOX3D; 
        XPA_EDITOR_BOX3D_FILLED; 
        XPA_EDITOR_SPHERE; 
        XPA_EDITOR_LINE; 
        XPA_EDITOR_CIRCLE; 
        XPA_EDITOR_CIRCLE_FILLED; 
        XPA_EDITOR_PYRAMID; 
        XPA_EDITOR_ARROW; 
        XPA_EDITOR_ARROW_FILLED; 
        XPA_EDITOR_PLANE; 
        XPA_EDITOR_PLANE_FILLED; 
        XPA_EDITOR_NONE; 
    }
}
            

Header File Code (Oxpaction.h)

#ifndef OXPACTION_H__
#define OXPACTION_H__
enum
{
  XPA_EDITOR_PARTICLES = 1000,  //First ID should start at 1000
    XPA_EDITOR_DOT = 1,
    XPA_EDITOR_TICK = 2,
    XPA_EDITOR_AXIS = 3,
    XPA_EDITOR_BOX = 4,
    XPA_EDITOR_BOX3D = 5,
    XPA_EDITOR_BOX3D_FILLED = 6,
    XPA_EDITOR_SPHERE = 7,
    XPA_EDITOR_LINE = 8,
    XPA_EDITOR_CIRCLE = 9,
    XPA_EDITOR_CIRCLE_FILLED = 10,
    XPA_EDITOR_PYRAMID = 11,
    XPA_EDITOR_ARROW = 12,
    XPA_EDITOR_ARROW_FILLED = 13,
    XPA_EDITOR_PLANE = 14,
    XPA_EDITOR_PLANE_FILLED = 15,
    XPA_EDITOR_NONE = 16,
};
#endif	// OXPACTION_H__

String File Code (Oxpaction.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XPA_EDITOR_PARTICLES    "EditorDisplay";
    XPA_EDITOR_DOT    "Dots";
    XPA_EDITOR_TICK    "Ticks";
    XPA_EDITOR_AXIS    "Axes";
    XPA_EDITOR_BOX    "Squares";
    XPA_EDITOR_BOX3D    "Box";
    XPA_EDITOR_BOX3D_FILLED    "Box(Filled)";
    XPA_EDITOR_SPHERE    "Spheres";
    XPA_EDITOR_LINE    "Lines";
    XPA_EDITOR_CIRCLE    "Circle";
    XPA_EDITOR_CIRCLE_FILLED    "Circle(Filled)";
    XPA_EDITOR_PYRAMID    "Pyramid";
    XPA_EDITOR_ARROW    "Arrow";
    XPA_EDITOR_ARROW_FILLED    "Arrow(Filled)";
    XPA_EDITOR_PLANE    "Plane";
    XPA_EDITOR_PLANE_FILLED    "Plane(Filled)";
    XPA_EDITOR_NONE    "None";
}