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 CAP_ROUNDING in Onurbscapslegacy

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

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

Resource File Code (Onurbscapslegacy.res)


LONG  CAP_ROUNDING
{
                        
    CYCLE 
    {         CAP_ROUNDING_LINEAR; 
        CAP_ROUNDING_CONVEX; 
        CAP_ROUNDING_CONCAVE; 
        CAP_ROUNDING_HALFCIRCLE; 
        CAP_ROUNDING_STEP; 
        CAP_ROUNDING_2STEPS; 
        CAP_ROUNDING_ENGRAVED; 
    }
}
            

Header File Code (Onurbscapslegacy.h)

#ifndef ONURBSCAPSLEGACY_H__
#define ONURBSCAPSLEGACY_H__
enum
{
  CAP_ROUNDING = 1000,  //First ID should start at 1000
    CAP_ROUNDING_LINEAR = 1,
    CAP_ROUNDING_CONVEX = 2,
    CAP_ROUNDING_CONCAVE = 3,
    CAP_ROUNDING_HALFCIRCLE = 4,
    CAP_ROUNDING_STEP = 5,
    CAP_ROUNDING_2STEPS = 6,
    CAP_ROUNDING_ENGRAVED = 7,
};
#endif	// ONURBSCAPSLEGACY_H__

String File Code (Onurbscapslegacy.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  CAP_ROUNDING    "FilletType";
    CAP_ROUNDING_LINEAR    "Linear";
    CAP_ROUNDING_CONVEX    "Convex";
    CAP_ROUNDING_CONCAVE    "Concave";
    CAP_ROUNDING_HALFCIRCLE    "HalfCircle";
    CAP_ROUNDING_STEP    "1Step";
    CAP_ROUNDING_2STEPS    "2Steps";
    CAP_ROUNDING_ENGRAVED    "Engraved";
}