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 FORCE_TYPE in DynConstraintObject

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

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

Resource File Code (DynConstraintObject.res)


LONG  FORCE_TYPE
{
                        
    CYCLE 
    {         CONSTRAINT_JOINT_TYPE_HINGE; 
        180000011; 
        CONSTRAINT_JOINT_TYPE_CARDAN; 
        180000161; 
        CONSTRAINT_JOINT_TYPE_BALLSOCKET; 
        180000162; 
        CONSTRAINT_JOINT_TYPE_RAGDOLL; 
        180000163; 
        CONSTRAINT_JOINT_TYPE_SLIDER; 
        180000164; 
        CONSTRAINT_JOINT_TYPE_ROT_SLIDER; 
        180000165; 
        CONSTRAINT_JOINT_TYPE_PLANAR; 
        180000166; 
        CONSTRAINT_JOINT_TYPE_BOX; 
        180000167; 
        CONSTRAINT_JOINT_TYPE_WHEEL; 
        180000168; 
        CONSTRAINT_JOINT_TYPE_FIXED; 
        180000169; 
    }
}
            

Header File Code (DynConstraintObject.h)

#ifndef DYNCONSTRAINTOBJECT_H__
#define DYNCONSTRAINTOBJECT_H__
enum
{
  FORCE_TYPE = 1000,  //First ID should start at 1000
    CONSTRAINT_JOINT_TYPE_HINGE = 1,
    180000011 = 2,
    CONSTRAINT_JOINT_TYPE_CARDAN = 3,
    180000161 = 4,
    CONSTRAINT_JOINT_TYPE_BALLSOCKET = 5,
    180000162 = 6,
    CONSTRAINT_JOINT_TYPE_RAGDOLL = 7,
    180000163 = 8,
    CONSTRAINT_JOINT_TYPE_SLIDER = 9,
    180000164 = 10,
    CONSTRAINT_JOINT_TYPE_ROT_SLIDER = 11,
    180000165 = 12,
    CONSTRAINT_JOINT_TYPE_PLANAR = 13,
    180000166 = 14,
    CONSTRAINT_JOINT_TYPE_BOX = 15,
    180000167 = 16,
    CONSTRAINT_JOINT_TYPE_WHEEL = 17,
    180000168 = 18,
    CONSTRAINT_JOINT_TYPE_FIXED = 19,
    180000169 = 20,
};
#endif	// DYNCONSTRAINTOBJECT_H__

String File Code (DynConstraintObject.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  FORCE_TYPE    "";
    CONSTRAINT_JOINT_TYPE_HINGE    "Hinge";
    180000011    "";
    CONSTRAINT_JOINT_TYPE_CARDAN    "Cardan";
    180000161    "";
    CONSTRAINT_JOINT_TYPE_BALLSOCKET    "BallandSocket";
    180000162    "";
    CONSTRAINT_JOINT_TYPE_RAGDOLL    "Ragdoll";
    180000163    "";
    CONSTRAINT_JOINT_TYPE_SLIDER    "Slider";
    180000164    "";
    CONSTRAINT_JOINT_TYPE_ROT_SLIDER    "TwistSlider";
    180000165    "";
    CONSTRAINT_JOINT_TYPE_PLANAR    "Planar";
    180000166    "";
    CONSTRAINT_JOINT_TYPE_BOX    "Box";
    180000167    "";
    CONSTRAINT_JOINT_TYPE_WHEEL    "WheelSuspension";
    180000168    "";
    CONSTRAINT_JOINT_TYPE_FIXED    "Fixed";
    180000169    "";
}