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 FIELDENTRY_COLORMODE
Element Information
Sample Code
Example code for the id FIELDENTRY_COLORMODE in Desc_fieldentry
Note that this is not the actual code from the Desc_fieldentry file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Desc_fieldentry.res)
LONG FIELDENTRY_COLORMODE { CYCLE { FIELDENTRY_COLORMODE_PASS; FIELDENTRY_COLORMODE_COLOR; FIELDENTRY_COLORMODE_GRADIENT; } }
Header File Code (Desc_fieldentry.h)
#ifndef DESC_FIELDENTRY_H__ #define DESC_FIELDENTRY_H__ enum { FIELDENTRY_COLORMODE = 1000, //First ID should start at 1000 FIELDENTRY_COLORMODE_PASS = 1, FIELDENTRY_COLORMODE_COLOR = 2, FIELDENTRY_COLORMODE_GRADIENT = 3, }; #endif // DESC_FIELDENTRY_H__
String File Code (Desc_fieldentry.str)
// C4D-StringResource // Identifier Text STRINGTABLE { FIELDENTRY_COLORMODE "ColorMode"; FIELDENTRY_COLORMODE_PASS "Passthrough"; FIELDENTRY_COLORMODE_COLOR "Color"; FIELDENTRY_COLORMODE_GRADIENT "Gradient"; }