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 OUTLINEMAT_PATTERN_PRESET
Element Information
Sample Code
Example code for the id OUTLINEMAT_PATTERN_PRESET in Moutliner
Note that this is not the actual code from the Moutliner file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Moutliner.res)
LONG OUTLINEMAT_PATTERN_PRESET { CYCLE { OUTLINEMAT_PATTERN_SOLID; OUTLINEMAT_PATTERN_DASHED; OUTLINEMAT_PATTERN_DOTTED; OUTLINEMAT_PATTERN_CENTER; OUTLINEMAT_PATTERN_HIDDEN; OUTLINEMAT_PATTERN_PHANTOM; OUTLINEMAT_PATTERN_DASHDOT; OUTLINEMAT_PATTERN_BORDER; OUTLINEMAT_PATTERN_DIVIDE; OUTLINEMAT_PATTERN_CUSTOM; } }
Header File Code (Moutliner.h)
#ifndef MOUTLINER_H__ #define MOUTLINER_H__ enum { OUTLINEMAT_PATTERN_PRESET = 1000, //First ID should start at 1000 OUTLINEMAT_PATTERN_SOLID = 1, OUTLINEMAT_PATTERN_DASHED = 2, OUTLINEMAT_PATTERN_DOTTED = 3, OUTLINEMAT_PATTERN_CENTER = 4, OUTLINEMAT_PATTERN_HIDDEN = 5, OUTLINEMAT_PATTERN_PHANTOM = 6, OUTLINEMAT_PATTERN_DASHDOT = 7, OUTLINEMAT_PATTERN_BORDER = 8, OUTLINEMAT_PATTERN_DIVIDE = 9, OUTLINEMAT_PATTERN_CUSTOM = 10, }; #endif // MOUTLINER_H__
String File Code (Moutliner.str)
// C4D-StringResource // Identifier Text STRINGTABLE { OUTLINEMAT_PATTERN_PRESET "Type"; OUTLINEMAT_PATTERN_SOLID "Solid"; OUTLINEMAT_PATTERN_DASHED "Dashed"; OUTLINEMAT_PATTERN_DOTTED "Dotted"; OUTLINEMAT_PATTERN_CENTER "Center"; OUTLINEMAT_PATTERN_HIDDEN "Hidden"; OUTLINEMAT_PATTERN_PHANTOM "Phantom"; OUTLINEMAT_PATTERN_DASHDOT "Dash-dot"; OUTLINEMAT_PATTERN_BORDER "Border"; OUTLINEMAT_PATTERN_DIVIDE "Divide"; OUTLINEMAT_PATTERN_CUSTOM "Custom"; }