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 HAIR_TOOL_BRUSH_TYPE
Element Information
Sample Code
Example code for the id HAIR_TOOL_BRUSH_TYPE in ToolHairBrush
Note that this is not the actual code from the ToolHairBrush file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (ToolHairBrush.res)
LONG HAIR_TOOL_BRUSH_TYPE { CYCLE { HAIR_TOOL_BRUSH_TYPE_MOVE; HAIR_TOOL_BRUSH_TYPE_TWIST; HAIR_TOOL_BRUSH_TYPE_REPEL; HAIR_TOOL_BRUSH_TYPE_KINK; HAIR_TOOL_BRUSH_TYPE_SMOOTH; HAIR_TOOL_BRUSH_TYPE_SCALE; HAIR_TOOL_BRUSH_TYPE_STRAIGHTEN; HAIR_TOOL_BRUSH_TYPE_DELETE; HAIR_TOOL_BRUSH_TYPE_PAINT_VERTEX; } }
Header File Code (ToolHairBrush.h)
#ifndef TOOLHAIRBRUSH_H__ #define TOOLHAIRBRUSH_H__ enum { HAIR_TOOL_BRUSH_TYPE = 1000, //First ID should start at 1000 HAIR_TOOL_BRUSH_TYPE_MOVE = 1, HAIR_TOOL_BRUSH_TYPE_TWIST = 2, HAIR_TOOL_BRUSH_TYPE_REPEL = 3, HAIR_TOOL_BRUSH_TYPE_KINK = 4, HAIR_TOOL_BRUSH_TYPE_SMOOTH = 5, HAIR_TOOL_BRUSH_TYPE_SCALE = 6, HAIR_TOOL_BRUSH_TYPE_STRAIGHTEN = 7, HAIR_TOOL_BRUSH_TYPE_DELETE = 8, HAIR_TOOL_BRUSH_TYPE_PAINT_VERTEX = 9, }; #endif // TOOLHAIRBRUSH_H__
String File Code (ToolHairBrush.str)
// C4D-StringResource // Identifier Text STRINGTABLE { HAIR_TOOL_BRUSH_TYPE "Mode"; HAIR_TOOL_BRUSH_TYPE_MOVE "Move"; HAIR_TOOL_BRUSH_TYPE_TWIST "Twist"; HAIR_TOOL_BRUSH_TYPE_REPEL "Repel"; HAIR_TOOL_BRUSH_TYPE_KINK "Kink"; HAIR_TOOL_BRUSH_TYPE_SMOOTH "Smooth"; HAIR_TOOL_BRUSH_TYPE_SCALE "Scale"; HAIR_TOOL_BRUSH_TYPE_STRAIGHTEN "Straighten"; HAIR_TOOL_BRUSH_TYPE_DELETE "Delete"; HAIR_TOOL_BRUSH_TYPE_PAINT_VERTEX "VertexPaint"; }