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_LENSREFL 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_LENSREFL
{
                        
    CYCLE 
    {         LIGHT_LENSEFFECTS_LENSREFL_INACTIVE; 
        LIGHT_LENSEFFECTS_LENSREFL_CUSTOM; 
        LIGHT_LENSEFFECTS_LENSREFL_DEFAULT; 
        LIGHT_LENSEFFECTS_LENSREFL_CINEMAR4; 
        LIGHT_LENSEFFECTS_LENSREFL_WIDEANGLE; 
        LIGHT_LENSEFFECTS_LENSREFL_ZOOM; 
        LIGHT_LENSEFFECTS_LENSREFL_HI8; 
        LIGHT_LENSEFFECTS_LENSREFL_CAMCORDER; 
        LIGHT_LENSEFFECTS_LENSREFL_SEARCHLIGHT; 
        LIGHT_LENSEFFECTS_LENSREFL_ARTIFACT; 
        LIGHT_LENSEFFECTS_LENSREFL_STAR1; 
        LIGHT_LENSEFFECTS_LENSREFL_STAR2; 
        LIGHT_LENSEFFECTS_LENSREFL_STAR3; 
        LIGHT_LENSEFFECTS_LENSREFL_PURPLE; 
        LIGHT_LENSEFFECTS_LENSREFL_FLASHLIGHT1; 
        LIGHT_LENSEFFECTS_LENSREFL_FLASHLIGHT2; 
        LIGHT_LENSEFFECTS_LENSREFL_FLASHLIGHT3; 
    }
}
            

Header File Code (Olight.h)

#ifndef OLIGHT_H__
#define OLIGHT_H__
enum
{
  LIGHT_LENSEFFECTS_LENSREFL = 1000,  //First ID should start at 1000
    LIGHT_LENSEFFECTS_LENSREFL_INACTIVE = 1,
    LIGHT_LENSEFFECTS_LENSREFL_CUSTOM = 2,
    LIGHT_LENSEFFECTS_LENSREFL_DEFAULT = 3,
    LIGHT_LENSEFFECTS_LENSREFL_CINEMAR4 = 4,
    LIGHT_LENSEFFECTS_LENSREFL_WIDEANGLE = 5,
    LIGHT_LENSEFFECTS_LENSREFL_ZOOM = 6,
    LIGHT_LENSEFFECTS_LENSREFL_HI8 = 7,
    LIGHT_LENSEFFECTS_LENSREFL_CAMCORDER = 8,
    LIGHT_LENSEFFECTS_LENSREFL_SEARCHLIGHT = 9,
    LIGHT_LENSEFFECTS_LENSREFL_ARTIFACT = 10,
    LIGHT_LENSEFFECTS_LENSREFL_STAR1 = 11,
    LIGHT_LENSEFFECTS_LENSREFL_STAR2 = 12,
    LIGHT_LENSEFFECTS_LENSREFL_STAR3 = 13,
    LIGHT_LENSEFFECTS_LENSREFL_PURPLE = 14,
    LIGHT_LENSEFFECTS_LENSREFL_FLASHLIGHT1 = 15,
    LIGHT_LENSEFFECTS_LENSREFL_FLASHLIGHT2 = 16,
    LIGHT_LENSEFFECTS_LENSREFL_FLASHLIGHT3 = 17,
};
#endif	// OLIGHT_H__

String File Code (Olight.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  LIGHT_LENSEFFECTS_LENSREFL    "FXReflexes";
    LIGHT_LENSEFFECTS_LENSREFL_INACTIVE    "Inactive";
    LIGHT_LENSEFFECTS_LENSREFL_CUSTOM    "Custom";
    LIGHT_LENSEFFECTS_LENSREFL_DEFAULT    "Default";
    LIGHT_LENSEFFECTS_LENSREFL_CINEMAR4    "Cinema4DR4";
    LIGHT_LENSEFFECTS_LENSREFL_WIDEANGLE    "Wideangle";
    LIGHT_LENSEFFECTS_LENSREFL_ZOOM    "Zoom";
    LIGHT_LENSEFFECTS_LENSREFL_HI8    "Hi-8";
    LIGHT_LENSEFFECTS_LENSREFL_CAMCORDER    "Camcorder";
    LIGHT_LENSEFFECTS_LENSREFL_SEARCHLIGHT    "Searchlight";
    LIGHT_LENSEFFECTS_LENSREFL_ARTIFACT    "Artifact";
    LIGHT_LENSEFFECTS_LENSREFL_STAR1    "Star1";
    LIGHT_LENSEFFECTS_LENSREFL_STAR2    "Star2";
    LIGHT_LENSEFFECTS_LENSREFL_STAR3    "Star3";
    LIGHT_LENSEFFECTS_LENSREFL_PURPLE    "Purple";
    LIGHT_LENSEFFECTS_LENSREFL_FLASHLIGHT1    "Flashlight1";
    LIGHT_LENSEFFECTS_LENSREFL_FLASHLIGHT2    "Flashlight2";
    LIGHT_LENSEFFECTS_LENSREFL_FLASHLIGHT3    "Flashlight3";
}