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_DENSITY 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_DENSITY
{
                        
    CYCLE 
    {         DRAG_DENSITY_VACUUM; 
        -1; 
        DRAG_DENSITY_AIR; 
        DRAG_DENSITY_CO2; 
        DRAG_DENSITY_HELIUM; 
        DRAG_DENSITY_KRYPTON; 
        DRAG_DENSITY_XENON; 
        -1; 
        DRAG_DENSITY_PROPANE; 
        DRAG_DENSITY_NAPHTHA; 
        DRAG_DENSITY_GASOLINE; 
        DRAG_DENSITY_ETHANOL; 
        DRAG_DENSITY_WATER; 
        DRAG_DENSITY_GLYCERINE; 
        DRAG_DENSITY_SEAWATER; 
        DRAG_DENSITY_HEAVYWATER; 
        DRAG_DENSITY_TREACLE; 
        DRAG_DENSITY_BROMINE; 
        DRAG_DENSITY_MERCURY; 
        -1; 
        DRAG_DENSITY_CUSTOM; 
    }
}
            

Header File Code (Omdrag.h)

#ifndef OMDRAG_H__
#define OMDRAG_H__
enum
{
  XMDR_DRAG_DENSITY = 1000,  //First ID should start at 1000
    DRAG_DENSITY_VACUUM = 1,
    -1 = 2,
    DRAG_DENSITY_AIR = 3,
    DRAG_DENSITY_CO2 = 4,
    DRAG_DENSITY_HELIUM = 5,
    DRAG_DENSITY_KRYPTON = 6,
    DRAG_DENSITY_XENON = 7,
    -1 = 8,
    DRAG_DENSITY_PROPANE = 9,
    DRAG_DENSITY_NAPHTHA = 10,
    DRAG_DENSITY_GASOLINE = 11,
    DRAG_DENSITY_ETHANOL = 12,
    DRAG_DENSITY_WATER = 13,
    DRAG_DENSITY_GLYCERINE = 14,
    DRAG_DENSITY_SEAWATER = 15,
    DRAG_DENSITY_HEAVYWATER = 16,
    DRAG_DENSITY_TREACLE = 17,
    DRAG_DENSITY_BROMINE = 18,
    DRAG_DENSITY_MERCURY = 19,
    -1 = 20,
    DRAG_DENSITY_CUSTOM = 21,
};
#endif	// OMDRAG_H__

String File Code (Omdrag.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XMDR_DRAG_DENSITY    "Density";
    DRAG_DENSITY_VACUUM    "Vacuum";
    -1    "";
    DRAG_DENSITY_AIR    "Air";
    DRAG_DENSITY_CO2    "CarbonDioxide";
    DRAG_DENSITY_HELIUM    "Helium";
    DRAG_DENSITY_KRYPTON    "Krypton";
    DRAG_DENSITY_XENON    "Xenon";
    -1    "";
    DRAG_DENSITY_PROPANE    "Propane(Liquified)";
    DRAG_DENSITY_NAPHTHA    "Naphtha";
    DRAG_DENSITY_GASOLINE    "Gasoline(Petrol)";
    DRAG_DENSITY_ETHANOL    "Ethanol";
    DRAG_DENSITY_WATER    "Water";
    DRAG_DENSITY_GLYCERINE    "Glycerine";
    DRAG_DENSITY_SEAWATER    "SeaWater";
    DRAG_DENSITY_HEAVYWATER    "HeavyWater";
    DRAG_DENSITY_TREACLE    "Treacle";
    DRAG_DENSITY_BROMINE    "Bromine";
    DRAG_DENSITY_MERCURY    "Mercury";
    -1    "";
    DRAG_DENSITY_CUSTOM    "Custom";
}