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 CONICCURVE_TYPE in CBconic

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

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

Resource File Code (CBconic.res)


LONG  CONICCURVE_TYPE
{
                        
    CYCLE 
    {         CONICCURVE_DEPRECIATED; 
        CONICCURVE_ELLIPSE; 
        CONICCURVE_HYPERBOLA; 
        CONICCURVE_PARABOLA; 
    }
}
            

Header File Code (CBconic.h)

#ifndef CBCONIC_H__
#define CBCONIC_H__
enum
{
  CONICCURVE_TYPE = 1000,  //First ID should start at 1000
    CONICCURVE_DEPRECIATED = 1,
    CONICCURVE_ELLIPSE = 2,
    CONICCURVE_HYPERBOLA = 3,
    CONICCURVE_PARABOLA = 4,
};
#endif	// CBCONIC_H__

String File Code (CBconic.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  CONICCURVE_TYPE    "ConicType";
    CONICCURVE_DEPRECIATED    "Depreciated";
    CONICCURVE_ELLIPSE    "Ellipse";
    CONICCURVE_HYPERBOLA    "Hyperbola";
    CONICCURVE_PARABOLA    "Parabola";
}