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.

Element Information

Sample Code

Example code for the id TOONUP_PREFS_PREVIEW in Ttoonupprefs

Note that this is not the actual code from the Ttoonupprefs file.

This code is just an example to show you how to add a similar control to your own description.

Resource File Code (Ttoonupprefs.res)


LONG  TOONUP_PREFS_PREVIEW
{
                        
    CYCLE 
    {         TOONUP_PREFS_PREVIEW_STANDARD; 
        TOONUP_PREFS_PREVIEW_CUBE; 
        TOONUP_PREFS_PREVIEW_ROUNDCUBE; 
        TOONUP_PREFS_PREVIEW_PLANE; 
        TOONUP_PREFS_PREVIEW_CYLINDER; 
        TOONUP_PREFS_PREVIEW_TORUS; 
        TOONUP_PREFS_PREVIEW_PLANEBACK; 
        TOONUP_PREFS_PREVIEW_SPHERE; 
        TOONUP_PREFS_PREVIEW_DOUBLETORUS; 
        TOONUP_PREFS_PREVIEW_KNOT; 
        TOONUP_PREFS_PREVIEW_STROKE; 
        TOONUP_PREFS_PREVIEW_CUSTOM; 
    }
}
            

Header File Code (Ttoonupprefs.h)

#ifndef TTOONUPPREFS_H__
#define TTOONUPPREFS_H__
enum
{
  TOONUP_PREFS_PREVIEW = 1000,  //First ID should start at 1000
    TOONUP_PREFS_PREVIEW_STANDARD = 1,
    TOONUP_PREFS_PREVIEW_CUBE = 2,
    TOONUP_PREFS_PREVIEW_ROUNDCUBE = 3,
    TOONUP_PREFS_PREVIEW_PLANE = 4,
    TOONUP_PREFS_PREVIEW_CYLINDER = 5,
    TOONUP_PREFS_PREVIEW_TORUS = 6,
    TOONUP_PREFS_PREVIEW_PLANEBACK = 7,
    TOONUP_PREFS_PREVIEW_SPHERE = 8,
    TOONUP_PREFS_PREVIEW_DOUBLETORUS = 9,
    TOONUP_PREFS_PREVIEW_KNOT = 10,
    TOONUP_PREFS_PREVIEW_STROKE = 11,
    TOONUP_PREFS_PREVIEW_CUSTOM = 12,
};
#endif	// TTOONUPPREFS_H__

String File Code (Ttoonupprefs.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  TOONUP_PREFS_PREVIEW    "MaterialDefaultProject";
    TOONUP_PREFS_PREVIEW_STANDARD    "Standard";
    TOONUP_PREFS_PREVIEW_CUBE    "Cube";
    TOONUP_PREFS_PREVIEW_ROUNDCUBE    "RoundedCube";
    TOONUP_PREFS_PREVIEW_PLANE    "Plane";
    TOONUP_PREFS_PREVIEW_CYLINDER    "Cylinder";
    TOONUP_PREFS_PREVIEW_TORUS    "Torus";
    TOONUP_PREFS_PREVIEW_PLANEBACK    "PlaneBacklit";
    TOONUP_PREFS_PREVIEW_SPHERE    "Sphere";
    TOONUP_PREFS_PREVIEW_DOUBLETORUS    "DoubleTorus";
    TOONUP_PREFS_PREVIEW_KNOT    "Knot";
    TOONUP_PREFS_PREVIEW_STROKE    "Stroke";
    TOONUP_PREFS_PREVIEW_CUSTOM    "Custom";
}