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 LIGHT_LENSEFFECTS_LENSGLOW in Olight

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

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

Resource File Code (Olight.res)


LONG  LIGHT_LENSEFFECTS_LENSGLOW
{
                        
    CYCLE 
    {         LIGHT_LENSEFFECTS_LENSGLOW_INACTIVE; 
        LIGHT_LENSEFFECTS_LENSGLOW_CUSTOM; 
        LIGHT_LENSEFFECTS_LENSGLOW_DEFAULT; 
        LIGHT_LENSEFFECTS_LENSGLOW_CINEMAR4; 
        LIGHT_LENSEFFECTS_LENSGLOW_WIDEANGLE; 
        LIGHT_LENSEFFECTS_LENSGLOW_ZOOM; 
        LIGHT_LENSEFFECTS_LENSGLOW_HI8; 
        LIGHT_LENSEFFECTS_LENSGLOW_CAMCORDER; 
        LIGHT_LENSEFFECTS_LENSGLOW_SEARCHLIGHT; 
        LIGHT_LENSEFFECTS_LENSGLOW_ARTIFACT; 
        LIGHT_LENSEFFECTS_LENSGLOW_STAR1; 
        LIGHT_LENSEFFECTS_LENSGLOW_STAR2; 
        LIGHT_LENSEFFECTS_LENSGLOW_STAR3; 
        LIGHT_LENSEFFECTS_LENSGLOW_PURPLE; 
        LIGHT_LENSEFFECTS_LENSGLOW_FLASHLIGHT; 
        LIGHT_LENSEFFECTS_LENSGLOW_SUN1; 
        LIGHT_LENSEFFECTS_LENSGLOW_SUN2; 
        LIGHT_LENSEFFECTS_LENSGLOW_GREY; 
        LIGHT_LENSEFFECTS_LENSGLOW_BLUE1; 
        LIGHT_LENSEFFECTS_LENSGLOW_BLUE2; 
        LIGHT_LENSEFFECTS_LENSGLOW_RED; 
        LIGHT_LENSEFFECTS_LENSGLOW_YELLOWGREEN1; 
        LIGHT_LENSEFFECTS_LENSGLOW_YELLOWGREEN2; 
        LIGHT_LENSEFFECTS_LENSGLOW_CANDLE; 
    }
}
            

Header File Code (Olight.h)

#ifndef OLIGHT_H__
#define OLIGHT_H__
enum
{
  LIGHT_LENSEFFECTS_LENSGLOW = 1000,  //First ID should start at 1000
    LIGHT_LENSEFFECTS_LENSGLOW_INACTIVE = 1,
    LIGHT_LENSEFFECTS_LENSGLOW_CUSTOM = 2,
    LIGHT_LENSEFFECTS_LENSGLOW_DEFAULT = 3,
    LIGHT_LENSEFFECTS_LENSGLOW_CINEMAR4 = 4,
    LIGHT_LENSEFFECTS_LENSGLOW_WIDEANGLE = 5,
    LIGHT_LENSEFFECTS_LENSGLOW_ZOOM = 6,
    LIGHT_LENSEFFECTS_LENSGLOW_HI8 = 7,
    LIGHT_LENSEFFECTS_LENSGLOW_CAMCORDER = 8,
    LIGHT_LENSEFFECTS_LENSGLOW_SEARCHLIGHT = 9,
    LIGHT_LENSEFFECTS_LENSGLOW_ARTIFACT = 10,
    LIGHT_LENSEFFECTS_LENSGLOW_STAR1 = 11,
    LIGHT_LENSEFFECTS_LENSGLOW_STAR2 = 12,
    LIGHT_LENSEFFECTS_LENSGLOW_STAR3 = 13,
    LIGHT_LENSEFFECTS_LENSGLOW_PURPLE = 14,
    LIGHT_LENSEFFECTS_LENSGLOW_FLASHLIGHT = 15,
    LIGHT_LENSEFFECTS_LENSGLOW_SUN1 = 16,
    LIGHT_LENSEFFECTS_LENSGLOW_SUN2 = 17,
    LIGHT_LENSEFFECTS_LENSGLOW_GREY = 18,
    LIGHT_LENSEFFECTS_LENSGLOW_BLUE1 = 19,
    LIGHT_LENSEFFECTS_LENSGLOW_BLUE2 = 20,
    LIGHT_LENSEFFECTS_LENSGLOW_RED = 21,
    LIGHT_LENSEFFECTS_LENSGLOW_YELLOWGREEN1 = 22,
    LIGHT_LENSEFFECTS_LENSGLOW_YELLOWGREEN2 = 23,
    LIGHT_LENSEFFECTS_LENSGLOW_CANDLE = 24,
};
#endif	// OLIGHT_H__

String File Code (Olight.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  LIGHT_LENSEFFECTS_LENSGLOW    "FXGlow";
    LIGHT_LENSEFFECTS_LENSGLOW_INACTIVE    "Inactive";
    LIGHT_LENSEFFECTS_LENSGLOW_CUSTOM    "Custom";
    LIGHT_LENSEFFECTS_LENSGLOW_DEFAULT    "Default";
    LIGHT_LENSEFFECTS_LENSGLOW_CINEMAR4    "Cinema4DR4";
    LIGHT_LENSEFFECTS_LENSGLOW_WIDEANGLE    "Wideangle";
    LIGHT_LENSEFFECTS_LENSGLOW_ZOOM    "Zoom";
    LIGHT_LENSEFFECTS_LENSGLOW_HI8    "Hi-8";
    LIGHT_LENSEFFECTS_LENSGLOW_CAMCORDER    "Camcorder";
    LIGHT_LENSEFFECTS_LENSGLOW_SEARCHLIGHT    "Searchlight";
    LIGHT_LENSEFFECTS_LENSGLOW_ARTIFACT    "Artifact";
    LIGHT_LENSEFFECTS_LENSGLOW_STAR1    "Star1";
    LIGHT_LENSEFFECTS_LENSGLOW_STAR2    "Star2";
    LIGHT_LENSEFFECTS_LENSGLOW_STAR3    "Star3";
    LIGHT_LENSEFFECTS_LENSGLOW_PURPLE    "Purple";
    LIGHT_LENSEFFECTS_LENSGLOW_FLASHLIGHT    "Flashlight";
    LIGHT_LENSEFFECTS_LENSGLOW_SUN1    "Sun1";
    LIGHT_LENSEFFECTS_LENSGLOW_SUN2    "Sun2";
    LIGHT_LENSEFFECTS_LENSGLOW_GREY    "Grey";
    LIGHT_LENSEFFECTS_LENSGLOW_BLUE1    "Blue1";
    LIGHT_LENSEFFECTS_LENSGLOW_BLUE2    "Blue2";
    LIGHT_LENSEFFECTS_LENSGLOW_RED    "Red";
    LIGHT_LENSEFFECTS_LENSGLOW_YELLOWGREEN1    "Yellow-Green1";
    LIGHT_LENSEFFECTS_LENSGLOW_YELLOWGREEN2    "Yellow-Green2";
    LIGHT_LENSEFFECTS_LENSGLOW_CANDLE    "Candle";
}