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_MODE
Element Information
Sample Code
Example code for the id FIELDENTRY_MODE 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_MODE { CYCLE { FIELDENTRY_MODE_NORMAL; FIELDENTRY_MODE_SEPARATOR; FIELDENTRY_MODE_ADD; FIELDENTRY_MODE_LIGHTEN; FIELDENTRY_MODE_MULTIPLY; FIELDENTRY_MODE_COLORDODGE; FIELDENTRY_MODE_LINEARDODGE; FIELDENTRY_MODE_SEPARATOR; FIELDENTRY_MODE_SUBTRACT; FIELDENTRY_MODE_DARKEN; FIELDENTRY_MODE_SCREEN; FIELDENTRY_MODE_COLORBURN; FIELDENTRY_MODE_LINEARBURN; FIELDENTRY_MODE_SEPARATOR; FIELDENTRY_MODE_OVERLAY; FIELDENTRY_MODE_SOFTLIGHT; FIELDENTRY_MODE_HARDLIGHT; FIELDENTRY_MODE_LINEARLIGHT; FIELDENTRY_MODE_VIVIDLIGHT; FIELDENTRY_MODE_PINLIGHT; FIELDENTRY_MODE_GLOW; FIELDENTRY_MODE_SEPARATOR; FIELDENTRY_MODE_AVERAGE; FIELDENTRY_MODE_DIFFERENCE; FIELDENTRY_MODE_NEGATION; FIELDENTRY_MODE_EXCLUSION; FIELDENTRY_MODE_PHOENIX; FIELDENTRY_MODE_REFLECT; FIELDENTRY_MODE_SEPARATOR; FIELDENTRY_MODE_HARDMIX; FIELDENTRY_MODE_LEVR; FIELDENTRY_MODE_COLOR; FIELDENTRY_MODE_COLOR_INV; } }
Header File Code (Desc_fieldentry.h)
#ifndef DESC_FIELDENTRY_H__ #define DESC_FIELDENTRY_H__ enum { FIELDENTRY_MODE = 1000, //First ID should start at 1000 FIELDENTRY_MODE_NORMAL = 1, FIELDENTRY_MODE_SEPARATOR = 2, FIELDENTRY_MODE_ADD = 3, FIELDENTRY_MODE_LIGHTEN = 4, FIELDENTRY_MODE_MULTIPLY = 5, FIELDENTRY_MODE_COLORDODGE = 6, FIELDENTRY_MODE_LINEARDODGE = 7, FIELDENTRY_MODE_SEPARATOR = 8, FIELDENTRY_MODE_SUBTRACT = 9, FIELDENTRY_MODE_DARKEN = 10, FIELDENTRY_MODE_SCREEN = 11, FIELDENTRY_MODE_COLORBURN = 12, FIELDENTRY_MODE_LINEARBURN = 13, FIELDENTRY_MODE_SEPARATOR = 14, FIELDENTRY_MODE_OVERLAY = 15, FIELDENTRY_MODE_SOFTLIGHT = 16, FIELDENTRY_MODE_HARDLIGHT = 17, FIELDENTRY_MODE_LINEARLIGHT = 18, FIELDENTRY_MODE_VIVIDLIGHT = 19, FIELDENTRY_MODE_PINLIGHT = 20, FIELDENTRY_MODE_GLOW = 21, FIELDENTRY_MODE_SEPARATOR = 22, FIELDENTRY_MODE_AVERAGE = 23, FIELDENTRY_MODE_DIFFERENCE = 24, FIELDENTRY_MODE_NEGATION = 25, FIELDENTRY_MODE_EXCLUSION = 26, FIELDENTRY_MODE_PHOENIX = 27, FIELDENTRY_MODE_REFLECT = 28, FIELDENTRY_MODE_SEPARATOR = 29, FIELDENTRY_MODE_HARDMIX = 30, FIELDENTRY_MODE_LEVR = 31, FIELDENTRY_MODE_COLOR = 32, FIELDENTRY_MODE_COLOR_INV = 33, }; #endif // DESC_FIELDENTRY_H__
String File Code (Desc_fieldentry.str)
// C4D-StringResource // Identifier Text STRINGTABLE { FIELDENTRY_MODE "BlendMode"; FIELDENTRY_MODE_NORMAL "Normal"; FIELDENTRY_MODE_SEPARATOR ""; FIELDENTRY_MODE_ADD "Add"; FIELDENTRY_MODE_LIGHTEN "Lighten"; FIELDENTRY_MODE_MULTIPLY "Multiply"; FIELDENTRY_MODE_COLORDODGE "ColorDodge"; FIELDENTRY_MODE_LINEARDODGE "LinearDodge"; FIELDENTRY_MODE_SEPARATOR ""; FIELDENTRY_MODE_SUBTRACT "Subtract"; FIELDENTRY_MODE_DARKEN "Darken"; FIELDENTRY_MODE_SCREEN "Screen"; FIELDENTRY_MODE_COLORBURN "ColorBurn"; FIELDENTRY_MODE_LINEARBURN "LinearBurn"; FIELDENTRY_MODE_SEPARATOR ""; FIELDENTRY_MODE_OVERLAY "Overlay"; FIELDENTRY_MODE_SOFTLIGHT "SoftLight"; FIELDENTRY_MODE_HARDLIGHT "HardLight"; FIELDENTRY_MODE_LINEARLIGHT "LinearLight"; FIELDENTRY_MODE_VIVIDLIGHT "VividLight"; FIELDENTRY_MODE_PINLIGHT "PinLight"; FIELDENTRY_MODE_GLOW "Glow"; FIELDENTRY_MODE_SEPARATOR ""; FIELDENTRY_MODE_AVERAGE "Average"; FIELDENTRY_MODE_DIFFERENCE "Difference"; FIELDENTRY_MODE_NEGATION "Negation"; FIELDENTRY_MODE_EXCLUSION "Exclusion"; FIELDENTRY_MODE_PHOENIX "Phoenix"; FIELDENTRY_MODE_REFLECT "Reflect"; FIELDENTRY_MODE_SEPARATOR ""; FIELDENTRY_MODE_HARDMIX "HardMix"; FIELDENTRY_MODE_LEVR "Levr"; FIELDENTRY_MODE_COLOR "Color"; FIELDENTRY_MODE_COLOR_INV "ColorInverse"; }