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_FNUMBER 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_FNUMBER
{
ANIM  OFF;                          
    CYCLE 
    {         CAMERAOBJECT_FNUMBER_CUSTOM; 
        CAMERAOBJECT_FNUMBER_10; 
        CAMERAOBJECT_FNUMBER_11; 
        CAMERAOBJECT_FNUMBER_12; 
        CAMERAOBJECT_FNUMBER_14; 
        CAMERAOBJECT_FNUMBER_16; 
        CAMERAOBJECT_FNUMBER_18; 
        CAMERAOBJECT_FNUMBER_20; 
        CAMERAOBJECT_FNUMBER_22; 
        CAMERAOBJECT_FNUMBER_25; 
        CAMERAOBJECT_FNUMBER_28; 
        CAMERAOBJECT_FNUMBER_32; 
        CAMERAOBJECT_FNUMBER_35; 
        CAMERAOBJECT_FNUMBER_40; 
        CAMERAOBJECT_FNUMBER_45; 
        CAMERAOBJECT_FNUMBER_50; 
        CAMERAOBJECT_FNUMBER_56; 
        CAMERAOBJECT_FNUMBER_63; 
        CAMERAOBJECT_FNUMBER_71; 
        CAMERAOBJECT_FNUMBER_80; 
        CAMERAOBJECT_FNUMBER_90; 
        CAMERAOBJECT_FNUMBER_100; 
        CAMERAOBJECT_FNUMBER_110; 
        CAMERAOBJECT_FNUMBER_130; 
        CAMERAOBJECT_FNUMBER_140; 
        CAMERAOBJECT_FNUMBER_160; 
        CAMERAOBJECT_FNUMBER_180; 
        CAMERAOBJECT_FNUMBER_200; 
        CAMERAOBJECT_FNUMBER_220; 
    }
}
            

Header File Code (Ocamera.h)

#ifndef OCAMERA_H__
#define OCAMERA_H__
enum
{
  CAMERAOBJECT_FNUMBER = 1000,  //First ID should start at 1000
    CAMERAOBJECT_FNUMBER_CUSTOM = 1,
    CAMERAOBJECT_FNUMBER_10 = 2,
    CAMERAOBJECT_FNUMBER_11 = 3,
    CAMERAOBJECT_FNUMBER_12 = 4,
    CAMERAOBJECT_FNUMBER_14 = 5,
    CAMERAOBJECT_FNUMBER_16 = 6,
    CAMERAOBJECT_FNUMBER_18 = 7,
    CAMERAOBJECT_FNUMBER_20 = 8,
    CAMERAOBJECT_FNUMBER_22 = 9,
    CAMERAOBJECT_FNUMBER_25 = 10,
    CAMERAOBJECT_FNUMBER_28 = 11,
    CAMERAOBJECT_FNUMBER_32 = 12,
    CAMERAOBJECT_FNUMBER_35 = 13,
    CAMERAOBJECT_FNUMBER_40 = 14,
    CAMERAOBJECT_FNUMBER_45 = 15,
    CAMERAOBJECT_FNUMBER_50 = 16,
    CAMERAOBJECT_FNUMBER_56 = 17,
    CAMERAOBJECT_FNUMBER_63 = 18,
    CAMERAOBJECT_FNUMBER_71 = 19,
    CAMERAOBJECT_FNUMBER_80 = 20,
    CAMERAOBJECT_FNUMBER_90 = 21,
    CAMERAOBJECT_FNUMBER_100 = 22,
    CAMERAOBJECT_FNUMBER_110 = 23,
    CAMERAOBJECT_FNUMBER_130 = 24,
    CAMERAOBJECT_FNUMBER_140 = 25,
    CAMERAOBJECT_FNUMBER_160 = 26,
    CAMERAOBJECT_FNUMBER_180 = 27,
    CAMERAOBJECT_FNUMBER_200 = 28,
    CAMERAOBJECT_FNUMBER_220 = 29,
};
#endif	// OCAMERA_H__

String File Code (Ocamera.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  CAMERAOBJECT_FNUMBER    "";
    CAMERAOBJECT_FNUMBER_CUSTOM    "Custom";
    CAMERAOBJECT_FNUMBER_10    "f/1.0";
    CAMERAOBJECT_FNUMBER_11    "f/1.1";
    CAMERAOBJECT_FNUMBER_12    "f/1.2";
    CAMERAOBJECT_FNUMBER_14    "f/1.4";
    CAMERAOBJECT_FNUMBER_16    "f/1.6";
    CAMERAOBJECT_FNUMBER_18    "f/1.8";
    CAMERAOBJECT_FNUMBER_20    "f/2.0";
    CAMERAOBJECT_FNUMBER_22    "f/2.2";
    CAMERAOBJECT_FNUMBER_25    "f/2.5";
    CAMERAOBJECT_FNUMBER_28    "f/2.8";
    CAMERAOBJECT_FNUMBER_32    "f/3.2";
    CAMERAOBJECT_FNUMBER_35    "f/3.5";
    CAMERAOBJECT_FNUMBER_40    "f/4.0";
    CAMERAOBJECT_FNUMBER_45    "f/4.5";
    CAMERAOBJECT_FNUMBER_50    "f/5.0";
    CAMERAOBJECT_FNUMBER_56    "f/5.6";
    CAMERAOBJECT_FNUMBER_63    "f/6.3";
    CAMERAOBJECT_FNUMBER_71    "f/7.1";
    CAMERAOBJECT_FNUMBER_80    "f/8.0";
    CAMERAOBJECT_FNUMBER_90    "f/9.0";
    CAMERAOBJECT_FNUMBER_100    "f/10.0";
    CAMERAOBJECT_FNUMBER_110    "f/11.0";
    CAMERAOBJECT_FNUMBER_130    "f/13.0";
    CAMERAOBJECT_FNUMBER_140    "f/14.0";
    CAMERAOBJECT_FNUMBER_160    "f/16.0";
    CAMERAOBJECT_FNUMBER_180    "f/18.0";
    CAMERAOBJECT_FNUMBER_200    "f/20.0";
    CAMERAOBJECT_FNUMBER_220    "f/22.0";
}