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 XMDR_DRAG_COEFF in Omdrag

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

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

Resource File Code (Omdrag.res)


LONG  XMDR_DRAG_COEFF
{
                        
    CYCLE 
    {         DRAG_COEFF_DOLPHIN; 
        DRAG_COEFF_MISSILE; 
        DRAG_COEFF_FIGHTER; 
        DRAG_COEFF_CAR; 
        DRAG_COEFF_BIRD; 
        DRAG_COEFF_SPHERE; 
        DRAG_COEFF_CUBE; 
        DRAG_COEFF_BICYCLE; 
        DRAG_COEFF_BICYCLE_RIDER; 
        DRAG_COEFF_HUMAN; 
        DRAG_COEFF_MCYCLE_RIDER; 
        DRAG_COEFF_RECT; 
        DRAG_COEFF_CUSTOM; 
    }
}
            

Header File Code (Omdrag.h)

#ifndef OMDRAG_H__
#define OMDRAG_H__
enum
{
  XMDR_DRAG_COEFF = 1000,  //First ID should start at 1000
    DRAG_COEFF_DOLPHIN = 1,
    DRAG_COEFF_MISSILE = 2,
    DRAG_COEFF_FIGHTER = 3,
    DRAG_COEFF_CAR = 4,
    DRAG_COEFF_BIRD = 5,
    DRAG_COEFF_SPHERE = 6,
    DRAG_COEFF_CUBE = 7,
    DRAG_COEFF_BICYCLE = 8,
    DRAG_COEFF_BICYCLE_RIDER = 9,
    DRAG_COEFF_HUMAN = 10,
    DRAG_COEFF_MCYCLE_RIDER = 11,
    DRAG_COEFF_RECT = 12,
    DRAG_COEFF_CUSTOM = 13,
};
#endif	// OMDRAG_H__

String File Code (Omdrag.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XMDR_DRAG_COEFF    "DragCoefficient";
    DRAG_COEFF_DOLPHIN    "Dolphin";
    DRAG_COEFF_MISSILE    "Missile";
    DRAG_COEFF_FIGHTER    "FighterAircraft";
    DRAG_COEFF_CAR    "SaloonCar";
    DRAG_COEFF_BIRD    "Bird";
    DRAG_COEFF_SPHERE    "Sphere";
    DRAG_COEFF_CUBE    "Cube";
    DRAG_COEFF_BICYCLE    "Bicycle";
    DRAG_COEFF_BICYCLE_RIDER    "BicycleandRider";
    DRAG_COEFF_HUMAN    "Human(Upright)";
    DRAG_COEFF_MCYCLE_RIDER    "MotorcycleandRider";
    DRAG_COEFF_RECT    "RectangularBox";
    DRAG_COEFF_CUSTOM    "Custom";
}