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 FIELDLAYER_WEIGHT_MODE
Element Information
Sample Code
Example code for the id FIELDLAYER_WEIGHT_MODE in FLweight
Note that this is not the actual code from the FLweight file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (FLweight.res)
LONG FIELDLAYER_WEIGHT_MODE { CYCLE { FIELDLAYER_WEIGHT_MODE_INDEX; FIELDLAYER_WEIGHT_MODE_NEAREST; -1; FIELDLAYER_WEIGHT_MODE_MAX; FIELDLAYER_WEIGHT_MODE_DISTMIN; FIELDLAYER_WEIGHT_MODE_AVG; } }
Header File Code (FLweight.h)
#ifndef FLWEIGHT_H__ #define FLWEIGHT_H__ enum { FIELDLAYER_WEIGHT_MODE = 1000, //First ID should start at 1000 FIELDLAYER_WEIGHT_MODE_INDEX = 1, FIELDLAYER_WEIGHT_MODE_NEAREST = 2, -1 = 3, FIELDLAYER_WEIGHT_MODE_MAX = 4, FIELDLAYER_WEIGHT_MODE_DISTMIN = 5, FIELDLAYER_WEIGHT_MODE_AVG = 6, }; #endif // FLWEIGHT_H__
String File Code (FLweight.str)
// C4D-StringResource // Identifier Text STRINGTABLE { FIELDLAYER_WEIGHT_MODE "Mode"; FIELDLAYER_WEIGHT_MODE_INDEX "Index"; FIELDLAYER_WEIGHT_MODE_NEAREST "Nearest"; -1 ""; FIELDLAYER_WEIGHT_MODE_MAX "Max"; FIELDLAYER_WEIGHT_MODE_DISTMIN "Min"; FIELDLAYER_WEIGHT_MODE_AVG "Average"; }