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 HLIGHT_PRESET in HighLights

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

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

Resource File Code (HighLights.res)


LONG  HLIGHT_PRESET
{
                        
    CYCLE 
    {         HLIGHT_PRESET_CUSTOM; 
        HLIGHT_PRESET_1; 
        HLIGHT_PRESET_2; 
        HLIGHT_PRESET_3; 
        HLIGHT_PRESET_4; 
        HLIGHT_PRESET_5; 
        HLIGHT_PRESET_6; 
        HLIGHT_PRESET_7; 
        HLIGHT_PRESET_8; 
        HLIGHT_PRESET_9; 
        HLIGHT_PRESET_10; 
        HLIGHT_PRESET_11; 
        HLIGHT_PRESET_12; 
        HLIGHT_PRESET_13; 
        HLIGHT_PRESET_14; 
        HLIGHT_PRESET_15; 
        HLIGHT_PRESET_16; 
        HLIGHT_PRESET_17; 
    }
}
            

Header File Code (HighLights.h)

#ifndef HIGHLIGHTS_H__
#define HIGHLIGHTS_H__
enum
{
  HLIGHT_PRESET = 1000,  //First ID should start at 1000
    HLIGHT_PRESET_CUSTOM = 1,
    HLIGHT_PRESET_1 = 2,
    HLIGHT_PRESET_2 = 3,
    HLIGHT_PRESET_3 = 4,
    HLIGHT_PRESET_4 = 5,
    HLIGHT_PRESET_5 = 6,
    HLIGHT_PRESET_6 = 7,
    HLIGHT_PRESET_7 = 8,
    HLIGHT_PRESET_8 = 9,
    HLIGHT_PRESET_9 = 10,
    HLIGHT_PRESET_10 = 11,
    HLIGHT_PRESET_11 = 12,
    HLIGHT_PRESET_12 = 13,
    HLIGHT_PRESET_13 = 14,
    HLIGHT_PRESET_14 = 15,
    HLIGHT_PRESET_15 = 16,
    HLIGHT_PRESET_16 = 17,
    HLIGHT_PRESET_17 = 18,
};
#endif	// HIGHLIGHTS_H__

String File Code (HighLights.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  HLIGHT_PRESET    "Preset";
    HLIGHT_PRESET_CUSTOM    "Custom";
    HLIGHT_PRESET_1    "FineRegular";
    HLIGHT_PRESET_2    "FineRandom";
    HLIGHT_PRESET_3    "Wideangle";
    HLIGHT_PRESET_4    "Zoom";
    HLIGHT_PRESET_5    "Camcorder";
    HLIGHT_PRESET_6    "Searchlight";
    HLIGHT_PRESET_7    "Streaks1";
    HLIGHT_PRESET_8    "Streaks2";
    HLIGHT_PRESET_9    "Star1";
    HLIGHT_PRESET_10    "Star2";
    HLIGHT_PRESET_11    "Flashlight";
    HLIGHT_PRESET_12    "Sun";
    HLIGHT_PRESET_13    "BrokenStar";
    HLIGHT_PRESET_14    "FineYellowStar";
    HLIGHT_PRESET_15    "SoftStreaks1";
    HLIGHT_PRESET_16    "SoftStreaks2";
    HLIGHT_PRESET_17    "Blue";
}