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 CAMERAOBJECT_WHITE_BALANCE in Ocamera

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

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

Resource File Code (Ocamera.res)


LONG  CAMERAOBJECT_WHITE_BALANCE
{
ANIM  OFF;                          
    CYCLE 
    {         CAMERAOBJECT_WHITE_BALANCE_CUSTOM; 
        CAMERAOBJECT_WHITE_BALANCE_CANDLE; 
        CAMERAOBJECT_WHITE_BALANCE_TUNGSTEN; 
        CAMERAOBJECT_WHITE_BALANCE_FLUORESCENT; 
        CAMERAOBJECT_WHITE_BALANCE_FLASH; 
        CAMERAOBJECT_WHITE_BALANCE_DAYLIGHT; 
        CAMERAOBJECT_WHITE_BALANCE_OVERCAST; 
        CAMERAOBJECT_WHITE_BALANCE_SHADE; 
    }
}
            

Header File Code (Ocamera.h)

#ifndef OCAMERA_H__
#define OCAMERA_H__
enum
{
  CAMERAOBJECT_WHITE_BALANCE = 1000,  //First ID should start at 1000
    CAMERAOBJECT_WHITE_BALANCE_CUSTOM = 1,
    CAMERAOBJECT_WHITE_BALANCE_CANDLE = 2,
    CAMERAOBJECT_WHITE_BALANCE_TUNGSTEN = 3,
    CAMERAOBJECT_WHITE_BALANCE_FLUORESCENT = 4,
    CAMERAOBJECT_WHITE_BALANCE_FLASH = 5,
    CAMERAOBJECT_WHITE_BALANCE_DAYLIGHT = 6,
    CAMERAOBJECT_WHITE_BALANCE_OVERCAST = 7,
    CAMERAOBJECT_WHITE_BALANCE_SHADE = 8,
};
#endif	// OCAMERA_H__

String File Code (Ocamera.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  CAMERAOBJECT_WHITE_BALANCE    "";
    CAMERAOBJECT_WHITE_BALANCE_CUSTOM    "Custom";
    CAMERAOBJECT_WHITE_BALANCE_CANDLE    "Candle(2000K)";
    CAMERAOBJECT_WHITE_BALANCE_TUNGSTEN    "Tungsten(3000K)";
    CAMERAOBJECT_WHITE_BALANCE_FLUORESCENT    "Fluorescent(4500K)";
    CAMERAOBJECT_WHITE_BALANCE_FLASH    "Flash(5500K)";
    CAMERAOBJECT_WHITE_BALANCE_DAYLIGHT    "Daylight(6500K)";
    CAMERAOBJECT_WHITE_BALANCE_OVERCAST    "Overcast(7500K)";
    CAMERAOBJECT_WHITE_BALANCE_SHADE    "Shade(9000K)";
}