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 THINFILMSHADER_IOR_PRESET in Xthinfilm

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

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

Resource File Code (Xthinfilm.res)


LONG  THINFILMSHADER_IOR_PRESET
{
ANIM  OFF;                          
    CYCLE 
    {         THINFILMSHADER_IOR_PRESET_CUSTOM; 
        THINFILMSHADER_IOR_PRESET_BEER; 
        THINFILMSHADER_IOR_PRESET_DIAMOND; 
        THINFILMSHADER_IOR_PRESET_EMERALD; 
        THINFILMSHADER_IOR_PRESET_ETHANOL; 
        THINFILMSHADER_IOR_PRESET_GLASS; 
        THINFILMSHADER_IOR_PRESET_JADE; 
        THINFILMSHADER_IOR_PRESET_MILK; 
        THINFILMSHADER_IOR_PRESET_OIL_VEGETABLE; 
        THINFILMSHADER_IOR_PRESET_PEARL; 
        THINFILMSHADER_IOR_PRESET_PET; 
        THINFILMSHADER_IOR_PRESET_PLEXIGLASS; 
        THINFILMSHADER_IOR_PRESET_RUBY; 
        THINFILMSHADER_IOR_PRESET_SAPPHIRE; 
        THINFILMSHADER_IOR_PRESET_WATER; 
        THINFILMSHADER_IOR_PRESET_WATER_ICE; 
        THINFILMSHADER_IOR_PRESET_WHISKEY; 
    }
}
            

Header File Code (Xthinfilm.h)

#ifndef XTHINFILM_H__
#define XTHINFILM_H__
enum
{
  THINFILMSHADER_IOR_PRESET = 1000,  //First ID should start at 1000
    THINFILMSHADER_IOR_PRESET_CUSTOM = 1,
    THINFILMSHADER_IOR_PRESET_BEER = 2,
    THINFILMSHADER_IOR_PRESET_DIAMOND = 3,
    THINFILMSHADER_IOR_PRESET_EMERALD = 4,
    THINFILMSHADER_IOR_PRESET_ETHANOL = 5,
    THINFILMSHADER_IOR_PRESET_GLASS = 6,
    THINFILMSHADER_IOR_PRESET_JADE = 7,
    THINFILMSHADER_IOR_PRESET_MILK = 8,
    THINFILMSHADER_IOR_PRESET_OIL_VEGETABLE = 9,
    THINFILMSHADER_IOR_PRESET_PEARL = 10,
    THINFILMSHADER_IOR_PRESET_PET = 11,
    THINFILMSHADER_IOR_PRESET_PLEXIGLASS = 12,
    THINFILMSHADER_IOR_PRESET_RUBY = 13,
    THINFILMSHADER_IOR_PRESET_SAPPHIRE = 14,
    THINFILMSHADER_IOR_PRESET_WATER = 15,
    THINFILMSHADER_IOR_PRESET_WATER_ICE = 16,
    THINFILMSHADER_IOR_PRESET_WHISKEY = 17,
};
#endif	// XTHINFILM_H__

String File Code (Xthinfilm.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  THINFILMSHADER_IOR_PRESET    "IORPreset";
    THINFILMSHADER_IOR_PRESET_CUSTOM    "Custom";
    THINFILMSHADER_IOR_PRESET_BEER    "Beer";
    THINFILMSHADER_IOR_PRESET_DIAMOND    "Diamond";
    THINFILMSHADER_IOR_PRESET_EMERALD    "Emerald";
    THINFILMSHADER_IOR_PRESET_ETHANOL    "Ethanol";
    THINFILMSHADER_IOR_PRESET_GLASS    "Glass";
    THINFILMSHADER_IOR_PRESET_JADE    "Jade";
    THINFILMSHADER_IOR_PRESET_MILK    "Milk";
    THINFILMSHADER_IOR_PRESET_OIL_VEGETABLE    "Oil(Vegetable)";
    THINFILMSHADER_IOR_PRESET_PEARL    "Pearl";
    THINFILMSHADER_IOR_PRESET_PET    "PET";
    THINFILMSHADER_IOR_PRESET_PLEXIGLASS    "Plexiglas";
    THINFILMSHADER_IOR_PRESET_RUBY    "Ruby";
    THINFILMSHADER_IOR_PRESET_SAPPHIRE    "Sapphire";
    THINFILMSHADER_IOR_PRESET_WATER    "Water";
    THINFILMSHADER_IOR_PRESET_WATER_ICE    "Water(Ice)";
    THINFILMSHADER_IOR_PRESET_WHISKEY    "Whiskey";
}