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 MDATA_BRUSH_MODE
Element Information
Sample Code
Example code for the id MDATA_BRUSH_MODE in ToolBrush
Note that this is not the actual code from the ToolBrush file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (ToolBrush.res)
LONG MDATA_BRUSH_MODE { ALIGN_LEFT ; CYCLE { MDATA_BRUSH_MODE_SMEAR; MDATA_BRUSH_MODE_PULL; MDATA_BRUSH_MODE_SURFACE; MDATA_BRUSH_MODE_NORMAL; MDATA_BRUSH_MODE_SPREAD; MDATA_BRUSH_MODE_SPIN; MDATA_BRUSH_MODE_TWIST; MDATA_BRUSH_MODE_VORTEX; MDATA_BRUSH_MODE_SMOOTH; -1; MDATA_BRUSH_MODE_PAINT; MDATA_BRUSH_MODE_BLUR; MDATA_BRUSH_MODE_BLEED; MDATA_BRUSH_MODE_INTENSITY; } }
Header File Code (ToolBrush.h)
#ifndef TOOLBRUSH_H__ #define TOOLBRUSH_H__ enum { MDATA_BRUSH_MODE = 1000, //First ID should start at 1000 MDATA_BRUSH_MODE_SMEAR = 1, MDATA_BRUSH_MODE_PULL = 2, MDATA_BRUSH_MODE_SURFACE = 3, MDATA_BRUSH_MODE_NORMAL = 4, MDATA_BRUSH_MODE_SPREAD = 5, MDATA_BRUSH_MODE_SPIN = 6, MDATA_BRUSH_MODE_TWIST = 7, MDATA_BRUSH_MODE_VORTEX = 8, MDATA_BRUSH_MODE_SMOOTH = 9, -1 = 10, MDATA_BRUSH_MODE_PAINT = 11, MDATA_BRUSH_MODE_BLUR = 12, MDATA_BRUSH_MODE_BLEED = 13, MDATA_BRUSH_MODE_INTENSITY = 14, }; #endif // TOOLBRUSH_H__
String File Code (ToolBrush.str)
// C4D-StringResource // Identifier Text STRINGTABLE { MDATA_BRUSH_MODE "Mode"; MDATA_BRUSH_MODE_SMEAR "Smear"; MDATA_BRUSH_MODE_PULL "Pull"; MDATA_BRUSH_MODE_SURFACE "Surface"; MDATA_BRUSH_MODE_NORMAL "Normal"; MDATA_BRUSH_MODE_SPREAD "Repel"; MDATA_BRUSH_MODE_SPIN "Spin"; MDATA_BRUSH_MODE_TWIST "Twister"; MDATA_BRUSH_MODE_VORTEX "Vortex"; MDATA_BRUSH_MODE_SMOOTH "Smooth"; -1 ""; MDATA_BRUSH_MODE_PAINT "Paint"; MDATA_BRUSH_MODE_BLUR "Blur"; MDATA_BRUSH_MODE_BLEED "Bleed"; MDATA_BRUSH_MODE_INTENSITY "Intensity"; }