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 GV_FLOATFUNC_FUNC in GVfloatfunc

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

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

Resource File Code (GVfloatfunc.res)


LONG  GV_FLOATFUNC_FUNC
{
                        
    CYCLE 
    {         TYPE_EXP; 
        TYPE_LN; 
        TYPE_LN10; 
        TYPE_SQRT; 
        TYPE_FLOOR; 
        TYPE_CEIL; 
        TYPE_POW; 
        TYPE_POW2; 
    }
}
            

Header File Code (GVfloatfunc.h)

#ifndef GVFLOATFUNC_H__
#define GVFLOATFUNC_H__
enum
{
  GV_FLOATFUNC_FUNC = 1000,  //First ID should start at 1000
    TYPE_EXP = 1,
    TYPE_LN = 2,
    TYPE_LN10 = 3,
    TYPE_SQRT = 4,
    TYPE_FLOOR = 5,
    TYPE_CEIL = 6,
    TYPE_POW = 7,
    TYPE_POW2 = 8,
};
#endif	// GVFLOATFUNC_H__

String File Code (GVfloatfunc.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  GV_FLOATFUNC_FUNC    "Function";
    TYPE_EXP    "Exp";
    TYPE_LN    "Ln";
    TYPE_LN10    "Ln10";
    TYPE_SQRT    "Sqrt";
    TYPE_FLOOR    "Floor";
    TYPE_CEIL    "Ceil";
    TYPE_POW    "Pow";
    TYPE_POW2    "Pow2";
}