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.
ID MG_POLY_MODE_
Element Information
Sample Code
Example code for the id MG_POLY_MODE_ in MGpoly
Note that this is not the actual code from the MGpoly file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (MGpoly.res)
LONG MG_POLY_MODE_
{
CYCLE
{ MG_POLY_MODE_VERTEX;
MG_POLY_MODE_EDGE;
MG_POLY_MODE_POLY;
MG_POLY_MODE_SURFACE;
MG_POLY_MODE_VOLUME;
MG_POLY_MODE_AXIS;
}
}
Header File Code (MGpoly.h)
#ifndef MGPOLY_H__
#define MGPOLY_H__
enum
{
MG_POLY_MODE_ = 1000, //First ID should start at 1000
MG_POLY_MODE_VERTEX = 1,
MG_POLY_MODE_EDGE = 2,
MG_POLY_MODE_POLY = 3,
MG_POLY_MODE_SURFACE = 4,
MG_POLY_MODE_VOLUME = 5,
MG_POLY_MODE_AXIS = 6,
};
#endif // MGPOLY_H__
String File Code (MGpoly.str)
// C4D-StringResource
// Identifier Text
STRINGTABLE
{
MG_POLY_MODE_ "Distribution";
MG_POLY_MODE_VERTEX "Vertex";
MG_POLY_MODE_EDGE "Edge";
MG_POLY_MODE_POLY "PolygonCenter";
MG_POLY_MODE_SURFACE "Surface";
MG_POLY_MODE_VOLUME "Volume";
MG_POLY_MODE_AXIS "Axis";
}