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 XNORM_FILTER in xnormalizer

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

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

Resource File Code (xnormalizer.res)


LONG  XNORM_FILTER
{
                        
    CYCLE 
    {         XNORM_FILTER_CONDENSED; 
        XNORM_FILTER_SOBEL_2X; 
        XNORM_FILTER_SOBEL_4X; 
    }
}
            

Header File Code (xnormalizer.h)

#ifndef XNORMALIZER_H__
#define XNORMALIZER_H__
enum
{
  XNORM_FILTER = 1000,  //First ID should start at 1000
    XNORM_FILTER_CONDENSED = 1,
    XNORM_FILTER_SOBEL_2X = 2,
    XNORM_FILTER_SOBEL_4X = 3,
};
#endif	// XNORMALIZER_H__

String File Code (xnormalizer.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XNORM_FILTER    "Filter";
    XNORM_FILTER_CONDENSED    "Condensed";
    XNORM_FILTER_SOBEL_2X    "Sobel2x";
    XNORM_FILTER_SOBEL_4X    "Sobel4x";
}