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_COMB_DIRECTION
Element Information
Sample Code
Example code for the id HAIR_TOOL_COMB_DIRECTION in ToolHairComb
Note that this is not the actual code from the ToolHairComb file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (ToolHairComb.res)
LONG HAIR_TOOL_COMB_DIRECTION { CYCLE { HAIR_TOOL_COMB_DIRECTION_CAMERA_X; HAIR_TOOL_COMB_DIRECTION_CAMERA_Y; HAIR_TOOL_COMB_DIRECTION_CAMERA_Z; HAIR_TOOL_COMB_DIRECTION_WORLD_X; HAIR_TOOL_COMB_DIRECTION_WORLD_Y; HAIR_TOOL_COMB_DIRECTION_WORLD_Z; HAIR_TOOL_COMB_DIRECTION_LOCAL_X; HAIR_TOOL_COMB_DIRECTION_LOCAL_Y; HAIR_TOOL_COMB_DIRECTION_LOCAL_Z; HAIR_TOOL_COMB_DIRECTION_SPLINE; HAIR_TOOL_COMB_DIRECTION_SHADER; } }
Header File Code (ToolHairComb.h)
#ifndef TOOLHAIRCOMB_H__ #define TOOLHAIRCOMB_H__ enum { HAIR_TOOL_COMB_DIRECTION = 1000, //First ID should start at 1000 HAIR_TOOL_COMB_DIRECTION_CAMERA_X = 1, HAIR_TOOL_COMB_DIRECTION_CAMERA_Y = 2, HAIR_TOOL_COMB_DIRECTION_CAMERA_Z = 3, HAIR_TOOL_COMB_DIRECTION_WORLD_X = 4, HAIR_TOOL_COMB_DIRECTION_WORLD_Y = 5, HAIR_TOOL_COMB_DIRECTION_WORLD_Z = 6, HAIR_TOOL_COMB_DIRECTION_LOCAL_X = 7, HAIR_TOOL_COMB_DIRECTION_LOCAL_Y = 8, HAIR_TOOL_COMB_DIRECTION_LOCAL_Z = 9, HAIR_TOOL_COMB_DIRECTION_SPLINE = 10, HAIR_TOOL_COMB_DIRECTION_SHADER = 11, }; #endif // TOOLHAIRCOMB_H__
String File Code (ToolHairComb.str)
// C4D-StringResource // Identifier Text STRINGTABLE { HAIR_TOOL_COMB_DIRECTION "Direction"; HAIR_TOOL_COMB_DIRECTION_CAMERA_X "CameraX"; HAIR_TOOL_COMB_DIRECTION_CAMERA_Y "CameraY"; HAIR_TOOL_COMB_DIRECTION_CAMERA_Z "CameraZ"; HAIR_TOOL_COMB_DIRECTION_WORLD_X "WorldX"; HAIR_TOOL_COMB_DIRECTION_WORLD_Y "WorldY"; HAIR_TOOL_COMB_DIRECTION_WORLD_Z "WorldZ"; HAIR_TOOL_COMB_DIRECTION_LOCAL_X "LocalX"; HAIR_TOOL_COMB_DIRECTION_LOCAL_Y "LocalY"; HAIR_TOOL_COMB_DIRECTION_LOCAL_Z "LocalZ"; HAIR_TOOL_COMB_DIRECTION_SPLINE "Spline"; HAIR_TOOL_COMB_DIRECTION_SHADER "Texture"; }