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 FIELDLAYERMOGRAPH_MODE in FLmograph

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

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

Resource File Code (FLmograph.res)


LONG  FIELDLAYERMOGRAPH_MODE
{
                        
    CYCLE 
    {         FIELDLAYERMOGRAPH_MODE_INDEX; 
        FIELDLAYERMOGRAPH_MODE_NEAREST; 
        -1; 
        FIELDLAYERMOGRAPH_MODE_PROXIMITYMAX; 
        FIELDLAYERMOGRAPH_MODE_PROXIMITYDISTMIN; 
        FIELDLAYERMOGRAPH_MODE_PROXIMITY; 
    }
}
            

Header File Code (FLmograph.h)

#ifndef FLMOGRAPH_H__
#define FLMOGRAPH_H__
enum
{
  FIELDLAYERMOGRAPH_MODE = 1000,  //First ID should start at 1000
    FIELDLAYERMOGRAPH_MODE_INDEX = 1,
    FIELDLAYERMOGRAPH_MODE_NEAREST = 2,
    -1 = 3,
    FIELDLAYERMOGRAPH_MODE_PROXIMITYMAX = 4,
    FIELDLAYERMOGRAPH_MODE_PROXIMITYDISTMIN = 5,
    FIELDLAYERMOGRAPH_MODE_PROXIMITY = 6,
};
#endif	// FLMOGRAPH_H__

String File Code (FLmograph.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  FIELDLAYERMOGRAPH_MODE    "Mode";
    FIELDLAYERMOGRAPH_MODE_INDEX    "Index";
    FIELDLAYERMOGRAPH_MODE_NEAREST    "Nearest";
    -1    "";
    FIELDLAYERMOGRAPH_MODE_PROXIMITYMAX    "Max";
    FIELDLAYERMOGRAPH_MODE_PROXIMITYDISTMIN    "Min";
    FIELDLAYERMOGRAPH_MODE_PROXIMITY    "Average";
}