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 MATERIAL_TRANSPARENCY_REFRACTION_PRESET in Mmaterial

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

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

Resource File Code (Mmaterial.res)


LONG  MATERIAL_TRANSPARENCY_REFRACTION_PRESET
{
ANIM  OFF;                          
    CYCLE 
    {         MATERIAL_TRANSPARENCY_REFRACTION_PRESET_CUSTOM; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_BEER; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_DIAMOND; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_EMERALD; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_ETHANOL; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_GLASS; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_JADE; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_MILK; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_OIL_VEGETABLE; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_PEARL; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_PET; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_PLEXIGLASS; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_RUBY; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_SAPPHIRE; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_WATER; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_WATER_ICE; 
        MATERIAL_TRANSPARENCY_REFRACTION_PRESET_WHISKEY; 
    }
}
            

Header File Code (Mmaterial.h)

#ifndef MMATERIAL_H__
#define MMATERIAL_H__
enum
{
  MATERIAL_TRANSPARENCY_REFRACTION_PRESET = 1000,  //First ID should start at 1000
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_CUSTOM = 1,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_BEER = 2,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_DIAMOND = 3,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_EMERALD = 4,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_ETHANOL = 5,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_GLASS = 6,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_JADE = 7,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_MILK = 8,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_OIL_VEGETABLE = 9,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_PEARL = 10,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_PET = 11,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_PLEXIGLASS = 12,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_RUBY = 13,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_SAPPHIRE = 14,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_WATER = 15,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_WATER_ICE = 16,
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_WHISKEY = 17,
};
#endif	// MMATERIAL_H__

String File Code (Mmaterial.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  MATERIAL_TRANSPARENCY_REFRACTION_PRESET    "TransparencyRefractionPreset";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_CUSTOM    "Custom";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_BEER    "Beer";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_DIAMOND    "Diamond";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_EMERALD    "Emerald";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_ETHANOL    "Ethanol";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_GLASS    "Glass";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_JADE    "Jade";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_MILK    "Milk";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_OIL_VEGETABLE    "Oil(Vegetable)";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_PEARL    "Pearl";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_PET    "PET";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_PLEXIGLASS    "Plexiglas";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_RUBY    "Ruby";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_SAPPHIRE    "Sapphire";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_WATER    "Water";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_WATER_ICE    "Water(Ice)";
    MATERIAL_TRANSPARENCY_REFRACTION_PRESET_WHISKEY    "Whiskey";
}