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_MATH_FUNCTION_ID in GVmath

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

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

Resource File Code (GVmath.res)


LONG  GV_MATH_FUNCTION_ID
{
                        
    CYCLE 
    {         GV_ADD_NODE_FUNCTION; 
        GV_SUB_NODE_FUNCTION; 
        GV_MUL_NODE_FUNCTION; 
        GV_DIV_NODE_FUNCTION; 
        GV_MOD_NODE_FUNCTION; 
    }
}
            

Header File Code (GVmath.h)

#ifndef GVMATH_H__
#define GVMATH_H__
enum
{
  GV_MATH_FUNCTION_ID = 1000,  //First ID should start at 1000
    GV_ADD_NODE_FUNCTION = 1,
    GV_SUB_NODE_FUNCTION = 2,
    GV_MUL_NODE_FUNCTION = 3,
    GV_DIV_NODE_FUNCTION = 4,
    GV_MOD_NODE_FUNCTION = 5,
};
#endif	// GVMATH_H__

String File Code (GVmath.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  GV_MATH_FUNCTION_ID    "Function";
    GV_ADD_NODE_FUNCTION    "Add";
    GV_SUB_NODE_FUNCTION    "Subtract";
    GV_MUL_NODE_FUNCTION    "Multiply";
    GV_DIV_NODE_FUNCTION    "Divide";
    GV_MOD_NODE_FUNCTION    "Modulo";
}