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 FIELD_CYLINDER_DIRECTION in Fcylinder

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

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

Resource File Code (Fcylinder.res)


LONG  FIELD_CYLINDER_DIRECTION
{
                        
    CYCLE 
    {         FIELD_CYLINDER_DIRECTION_XP; 
        FIELD_CYLINDER_DIRECTION_XN; 
        FIELD_CYLINDER_DIRECTION_YP; 
        FIELD_CYLINDER_DIRECTION_YN; 
        FIELD_CYLINDER_DIRECTION_ZP; 
        FIELD_CYLINDER_DIRECTION_ZN; 
    }
}
            

Header File Code (Fcylinder.h)

#ifndef FCYLINDER_H__
#define FCYLINDER_H__
enum
{
  FIELD_CYLINDER_DIRECTION = 1000,  //First ID should start at 1000
    FIELD_CYLINDER_DIRECTION_XP = 1,
    FIELD_CYLINDER_DIRECTION_XN = 2,
    FIELD_CYLINDER_DIRECTION_YP = 3,
    FIELD_CYLINDER_DIRECTION_YN = 4,
    FIELD_CYLINDER_DIRECTION_ZP = 5,
    FIELD_CYLINDER_DIRECTION_ZN = 6,
};
#endif	// FCYLINDER_H__

String File Code (Fcylinder.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  FIELD_CYLINDER_DIRECTION    "Direction";
    FIELD_CYLINDER_DIRECTION_XP    "X+";
    FIELD_CYLINDER_DIRECTION_XN    "X-";
    FIELD_CYLINDER_DIRECTION_YP    "Y+";
    FIELD_CYLINDER_DIRECTION_YN    "Y-";
    FIELD_CYLINDER_DIRECTION_ZP    "Z+";
    FIELD_CYLINDER_DIRECTION_ZN    "Z-";
}