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_PREFS_PREVIEW
Element Information
Sample Code
Example code for the id HAIR_PREFS_PREVIEW in Thairprefs
Note that this is not the actual code from the Thairprefs file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Thairprefs.res)
LONG HAIR_PREFS_PREVIEW { CYCLE { HAIR_PREFS_PREVIEW_STANDARD; HAIR_PREFS_PREVIEW_CUBE; HAIR_PREFS_PREVIEW_ROUNDCUBE; HAIR_PREFS_PREVIEW_PLANE; HAIR_PREFS_PREVIEW_CYLINDER; HAIR_PREFS_PREVIEW_TORUS; HAIR_PREFS_PREVIEW_PLANEBACK; HAIR_PREFS_PREVIEW_SPHERE; HAIR_PREFS_PREVIEW_DOUBLETORUS; HAIR_PREFS_PREVIEW_KNOT; HAIR_PREFS_PREVIEW_STRAND; HAIR_PREFS_PREVIEW_CUSTOM; } }
Header File Code (Thairprefs.h)
#ifndef THAIRPREFS_H__ #define THAIRPREFS_H__ enum { HAIR_PREFS_PREVIEW = 1000, //First ID should start at 1000 HAIR_PREFS_PREVIEW_STANDARD = 1, HAIR_PREFS_PREVIEW_CUBE = 2, HAIR_PREFS_PREVIEW_ROUNDCUBE = 3, HAIR_PREFS_PREVIEW_PLANE = 4, HAIR_PREFS_PREVIEW_CYLINDER = 5, HAIR_PREFS_PREVIEW_TORUS = 6, HAIR_PREFS_PREVIEW_PLANEBACK = 7, HAIR_PREFS_PREVIEW_SPHERE = 8, HAIR_PREFS_PREVIEW_DOUBLETORUS = 9, HAIR_PREFS_PREVIEW_KNOT = 10, HAIR_PREFS_PREVIEW_STRAND = 11, HAIR_PREFS_PREVIEW_CUSTOM = 12, }; #endif // THAIRPREFS_H__
String File Code (Thairprefs.str)
// C4D-StringResource // Identifier Text STRINGTABLE { HAIR_PREFS_PREVIEW "DefaultPreview"; HAIR_PREFS_PREVIEW_STANDARD "Standard"; HAIR_PREFS_PREVIEW_CUBE "Cube"; HAIR_PREFS_PREVIEW_ROUNDCUBE "RoundedCube"; HAIR_PREFS_PREVIEW_PLANE "Plane"; HAIR_PREFS_PREVIEW_CYLINDER "Cylinder"; HAIR_PREFS_PREVIEW_TORUS "Torus"; HAIR_PREFS_PREVIEW_PLANEBACK "PlaneBacklit"; HAIR_PREFS_PREVIEW_SPHERE "Sphere"; HAIR_PREFS_PREVIEW_DOUBLETORUS "DoubleTorus"; HAIR_PREFS_PREVIEW_KNOT "Knot"; HAIR_PREFS_PREVIEW_STRAND "Hair"; HAIR_PREFS_PREVIEW_CUSTOM "Custom"; }