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