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 RDATA_PIXELPRESET in Drendersettings

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

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

Resource File Code (Drendersettings.res)


LONG  RDATA_PIXELPRESET
{
ANIM  OFF;                          
    CYCLE 
    {         RDATA_PIXELPRESET_CUSTOM; 
        RDATA_PIXELPRESET_SQUARE; 
        RDATA_PIXELPRESET_D1DVNTSC; 
        RDATA_PIXELPRESET_D1DVPAL; 
        RDATA_PIXELPRESET_D1DVNTSCWIDESCREEN; 
        RDATA_PIXELPRESET_HDVANAMORPHIC; 
        RDATA_PIXELPRESET_D1DVPALWIDESCREEN; 
        RDATA_PIXELPRESET_ANAMORPHIC; 
    }
}
            

Header File Code (Drendersettings.h)

#ifndef DRENDERSETTINGS_H__
#define DRENDERSETTINGS_H__
enum
{
  RDATA_PIXELPRESET = 1000,  //First ID should start at 1000
    RDATA_PIXELPRESET_CUSTOM = 1,
    RDATA_PIXELPRESET_SQUARE = 2,
    RDATA_PIXELPRESET_D1DVNTSC = 3,
    RDATA_PIXELPRESET_D1DVPAL = 4,
    RDATA_PIXELPRESET_D1DVNTSCWIDESCREEN = 5,
    RDATA_PIXELPRESET_HDVANAMORPHIC = 6,
    RDATA_PIXELPRESET_D1DVPALWIDESCREEN = 7,
    RDATA_PIXELPRESET_ANAMORPHIC = 8,
};
#endif	// DRENDERSETTINGS_H__

String File Code (Drendersettings.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  RDATA_PIXELPRESET    "";
    RDATA_PIXELPRESET_CUSTOM    "Custom";
    RDATA_PIXELPRESET_SQUARE    "Square";
    RDATA_PIXELPRESET_D1DVNTSC    "D1/DVNTSC(0.9)";
    RDATA_PIXELPRESET_D1DVPAL    "D1/DVPAL(1.067)";
    RDATA_PIXELPRESET_D1DVNTSCWIDESCREEN    "D1/DVNTSCWidescreen(1.2)";
    RDATA_PIXELPRESET_HDVANAMORPHIC    "HDVAnamorphic(1.333)";
    RDATA_PIXELPRESET_D1DVPALWIDESCREEN    "D1/DVPALWidescreen(1.422)";
    RDATA_PIXELPRESET_ANAMORPHIC    "Anamorphic2:1(2.0)";
}