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 ID_FRACTURETAG_POINTCREATIONTYPE in tfracturevoronoi

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

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

Resource File Code (tfracturevoronoi.res)


LONG  ID_FRACTURETAG_POINTCREATIONTYPE
{
FIT_H  ;                          
    CYCLE 
    {         ID_FRACTURETAG_VERTICES; 
        ID_FRACTURETAG_EDGES; 
        ID_FRACTURETAG_POLYS; 
        ID_FRACTURETAG_SURFACE; 
        ID_FRACTURETAG_VOLUME; 
    }
}
            

Header File Code (tfracturevoronoi.h)

#ifndef TFRACTUREVORONOI_H__
#define TFRACTUREVORONOI_H__
enum
{
  ID_FRACTURETAG_POINTCREATIONTYPE = 1000,  //First ID should start at 1000
    ID_FRACTURETAG_VERTICES = 1,
    ID_FRACTURETAG_EDGES = 2,
    ID_FRACTURETAG_POLYS = 3,
    ID_FRACTURETAG_SURFACE = 4,
    ID_FRACTURETAG_VOLUME = 5,
};
#endif	// TFRACTUREVORONOI_H__

String File Code (tfracturevoronoi.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ID_FRACTURETAG_POINTCREATIONTYPE    "CreationMethod";
    ID_FRACTURETAG_VERTICES    "Vertices";
    ID_FRACTURETAG_EDGES    "EdgeCenters";
    ID_FRACTURETAG_POLYS    "PolygonCenters";
    ID_FRACTURETAG_SURFACE    "Surface";
    ID_FRACTURETAG_VOLUME    "Volume";
}