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 SLA_GRADIENT_TYPE in XSLAGradient

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

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

Resource File Code (XSLAGradient.res)


LONG  SLA_GRADIENT_TYPE
{
                        
    CYCLE 
    {         SLA_GRADIENT_TYPE_2D_U; 
        SLA_GRADIENT_TYPE_2D_V; 
        SLA_GRADIENT_TYPE_2D_DIAG; 
        SLA_GRADIENT_TYPE_2D_RAD; 
        SLA_GRADIENT_TYPE_2D_CIRC; 
        SLA_GRADIENT_TYPE_2D_BOX; 
        SLA_GRADIENT_TYPE_2D_STAR; 
        SLA_GRADIENT_TYPE_2D_FOUR_CORNER; 
        SLA_GRADIENT_TYPE_3D_LINEAR; 
        SLA_GRADIENT_TYPE_3D_CYLINDRICAL; 
        SLA_GRADIENT_TYPE_3D_SPHERICAL; 
    }
}
            

Header File Code (XSLAGradient.h)

#ifndef XSLAGRADIENT_H__
#define XSLAGRADIENT_H__
enum
{
  SLA_GRADIENT_TYPE = 1000,  //First ID should start at 1000
    SLA_GRADIENT_TYPE_2D_U = 1,
    SLA_GRADIENT_TYPE_2D_V = 2,
    SLA_GRADIENT_TYPE_2D_DIAG = 3,
    SLA_GRADIENT_TYPE_2D_RAD = 4,
    SLA_GRADIENT_TYPE_2D_CIRC = 5,
    SLA_GRADIENT_TYPE_2D_BOX = 6,
    SLA_GRADIENT_TYPE_2D_STAR = 7,
    SLA_GRADIENT_TYPE_2D_FOUR_CORNER = 8,
    SLA_GRADIENT_TYPE_3D_LINEAR = 9,
    SLA_GRADIENT_TYPE_3D_CYLINDRICAL = 10,
    SLA_GRADIENT_TYPE_3D_SPHERICAL = 11,
};
#endif	// XSLAGRADIENT_H__

String File Code (XSLAGradient.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  SLA_GRADIENT_TYPE    "Type";
    SLA_GRADIENT_TYPE_2D_U    "2D-U";
    SLA_GRADIENT_TYPE_2D_V    "2D-V";
    SLA_GRADIENT_TYPE_2D_DIAG    "2D-Diagonal";
    SLA_GRADIENT_TYPE_2D_RAD    "2D-Radial";
    SLA_GRADIENT_TYPE_2D_CIRC    "2D-Circular";
    SLA_GRADIENT_TYPE_2D_BOX    "2D-Box";
    SLA_GRADIENT_TYPE_2D_STAR    "2D-Star";
    SLA_GRADIENT_TYPE_2D_FOUR_CORNER    "2D-FourCorner";
    SLA_GRADIENT_TYPE_3D_LINEAR    "3D-Linear";
    SLA_GRADIENT_TYPE_3D_CYLINDRICAL    "3D-Cylindrical";
    SLA_GRADIENT_TYPE_3D_SPHERICAL    "3D-Spherical";
}