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 HAIRSTYLE_ROOT_PLACEMENT
Element Information
Sample Code
Example code for the id HAIRSTYLE_ROOT_PLACEMENT in Ohair
Note that this is not the actual code from the Ohair file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Ohair.res)
LONG HAIRSTYLE_ROOT_PLACEMENT { ANIM OFF; CYCLE { HAIRSTYLE_ROOT_PLACEMENT_FACE; HAIRSTYLE_ROOT_PLACEMENT_AREA; HAIRSTYLE_ROOT_PLACEMENT_FACE_CENTER; HAIRSTYLE_ROOT_PLACEMENT_VERTEX; HAIRSTYLE_ROOT_PLACEMENT_EDGE; HAIRSTYLE_ROOT_PLACEMENT_UV; HAIRSTYLE_ROOT_PLACEMENT_UV_UNIFORM; HAIRSTYLE_ROOT_PLACEMENT_VERTEX_FREE; HAIRSTYLE_ROOT_PLACEMENT_VERTEX_RADIAL; HAIRSTYLE_ROOT_PLACEMENT_SPLINE; HAIRSTYLE_ROOT_PLACEMENT_SPLINE_UNIFORM; HAIRSTYLE_ROOT_PLACEMENT_SPLINE_TIP; HAIRSTYLE_ROOT_PLACEMENT_SEGMENTS_2D; HAIRSTYLE_ROOT_PLACEMENT_SEGMENTS_3D; HAIRSTYLE_ROOT_PLACEMENT_HAIR_VERTEX; HAIRSTYLE_ROOT_PLACEMENT_HAIR_LINE; HAIRSTYLE_ROOT_PLACEMENT_HAIR_GUIDE; HAIRSTYLE_ROOT_PLACEMENT_HAIR_GUIDE_TIP; HAIRSTYLE_ROOT_PLACEMENT_FREE; } }
Header File Code (Ohair.h)
#ifndef OHAIR_H__ #define OHAIR_H__ enum { HAIRSTYLE_ROOT_PLACEMENT = 1000, //First ID should start at 1000 HAIRSTYLE_ROOT_PLACEMENT_FACE = 1, HAIRSTYLE_ROOT_PLACEMENT_AREA = 2, HAIRSTYLE_ROOT_PLACEMENT_FACE_CENTER = 3, HAIRSTYLE_ROOT_PLACEMENT_VERTEX = 4, HAIRSTYLE_ROOT_PLACEMENT_EDGE = 5, HAIRSTYLE_ROOT_PLACEMENT_UV = 6, HAIRSTYLE_ROOT_PLACEMENT_UV_UNIFORM = 7, HAIRSTYLE_ROOT_PLACEMENT_VERTEX_FREE = 8, HAIRSTYLE_ROOT_PLACEMENT_VERTEX_RADIAL = 9, HAIRSTYLE_ROOT_PLACEMENT_SPLINE = 10, HAIRSTYLE_ROOT_PLACEMENT_SPLINE_UNIFORM = 11, HAIRSTYLE_ROOT_PLACEMENT_SPLINE_TIP = 12, HAIRSTYLE_ROOT_PLACEMENT_SEGMENTS_2D = 13, HAIRSTYLE_ROOT_PLACEMENT_SEGMENTS_3D = 14, HAIRSTYLE_ROOT_PLACEMENT_HAIR_VERTEX = 15, HAIRSTYLE_ROOT_PLACEMENT_HAIR_LINE = 16, HAIRSTYLE_ROOT_PLACEMENT_HAIR_GUIDE = 17, HAIRSTYLE_ROOT_PLACEMENT_HAIR_GUIDE_TIP = 18, HAIRSTYLE_ROOT_PLACEMENT_FREE = 19, }; #endif // OHAIR_H__
String File Code (Ohair.str)
// C4D-StringResource // Identifier Text STRINGTABLE { HAIRSTYLE_ROOT_PLACEMENT "Root"; HAIRSTYLE_ROOT_PLACEMENT_FACE "Polygon"; HAIRSTYLE_ROOT_PLACEMENT_AREA "PolygonArea"; HAIRSTYLE_ROOT_PLACEMENT_FACE_CENTER "PolygonCenter"; HAIRSTYLE_ROOT_PLACEMENT_VERTEX "PolygonVertex"; HAIRSTYLE_ROOT_PLACEMENT_EDGE "PolygonEdge"; HAIRSTYLE_ROOT_PLACEMENT_UV "UV"; HAIRSTYLE_ROOT_PLACEMENT_UV_UNIFORM "UVGrid"; HAIRSTYLE_ROOT_PLACEMENT_VERTEX_FREE "Vertex"; HAIRSTYLE_ROOT_PLACEMENT_VERTEX_RADIAL "SplineVertex"; HAIRSTYLE_ROOT_PLACEMENT_SPLINE "SplineSegment"; HAIRSTYLE_ROOT_PLACEMENT_SPLINE_UNIFORM "SplineUniform"; HAIRSTYLE_ROOT_PLACEMENT_SPLINE_TIP "SplineTip"; HAIRSTYLE_ROOT_PLACEMENT_SEGMENTS_2D "Spline2D"; HAIRSTYLE_ROOT_PLACEMENT_SEGMENTS_3D "SplineGuides"; HAIRSTYLE_ROOT_PLACEMENT_HAIR_VERTEX "HairVertex"; HAIRSTYLE_ROOT_PLACEMENT_HAIR_LINE "HairLines"; HAIRSTYLE_ROOT_PLACEMENT_HAIR_GUIDE "HairGuides"; HAIRSTYLE_ROOT_PLACEMENT_HAIR_GUIDE_TIP "GuideTip"; HAIRSTYLE_ROOT_PLACEMENT_FREE "Custom"; }