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_HAIR_ROOT_PLACEMENT
Element Information
Sample Code
Example code for the id HAIRSTYLE_HAIR_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_HAIR_ROOT_PLACEMENT { CYCLE { HAIRSTYLE_ROOT_PLACEMENT_AUTO; 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_ASGUIDES; } }
Header File Code (Ohair.h)
#ifndef OHAIR_H__ #define OHAIR_H__ enum { HAIRSTYLE_HAIR_ROOT_PLACEMENT = 1000, //First ID should start at 1000 HAIRSTYLE_ROOT_PLACEMENT_AUTO = 1, HAIRSTYLE_ROOT_PLACEMENT_FACE = 2, HAIRSTYLE_ROOT_PLACEMENT_AREA = 3, HAIRSTYLE_ROOT_PLACEMENT_FACE_CENTER = 4, HAIRSTYLE_ROOT_PLACEMENT_VERTEX = 5, HAIRSTYLE_ROOT_PLACEMENT_EDGE = 6, HAIRSTYLE_ROOT_PLACEMENT_UV = 7, HAIRSTYLE_ROOT_PLACEMENT_UV_UNIFORM = 8, HAIRSTYLE_ROOT_PLACEMENT_VERTEX_FREE = 9, HAIRSTYLE_ROOT_PLACEMENT_VERTEX_RADIAL = 10, HAIRSTYLE_ROOT_PLACEMENT_SPLINE = 11, HAIRSTYLE_ROOT_PLACEMENT_SPLINE_UNIFORM = 12, HAIRSTYLE_ROOT_PLACEMENT_SPLINE_TIP = 13, HAIRSTYLE_ROOT_PLACEMENT_SEGMENTS_2D = 14, HAIRSTYLE_ROOT_PLACEMENT_SEGMENTS_3D = 15, HAIRSTYLE_ROOT_PLACEMENT_HAIR_VERTEX = 16, HAIRSTYLE_ROOT_PLACEMENT_HAIR_LINE = 17, HAIRSTYLE_ROOT_PLACEMENT_HAIR_GUIDE = 18, HAIRSTYLE_ROOT_PLACEMENT_HAIR_GUIDE_TIP = 19, HAIRSTYLE_ROOT_PLACEMENT_ASGUIDES = 20, }; #endif // OHAIR_H__
String File Code (Ohair.str)
// C4D-StringResource // Identifier Text STRINGTABLE { HAIRSTYLE_HAIR_ROOT_PLACEMENT "Root"; HAIRSTYLE_ROOT_PLACEMENT_AUTO "Auto"; 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_ASGUIDES "AsGuides"; }