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_CAPSULE_DIRECTION in Fcapsule

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

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

Resource File Code (Fcapsule.res)


LONG  FIELD_CAPSULE_DIRECTION
{
                        
    CYCLE 
    {         FIELD_CAPSULE_DIRECTION_XP; 
        FIELD_CAPSULE_DIRECTION_XN; 
        FIELD_CAPSULE_DIRECTION_YP; 
        FIELD_CAPSULE_DIRECTION_YN; 
        FIELD_CAPSULE_DIRECTION_ZP; 
        FIELD_CAPSULE_DIRECTION_ZN; 
    }
}
            

Header File Code (Fcapsule.h)

#ifndef FCAPSULE_H__
#define FCAPSULE_H__
enum
{
  FIELD_CAPSULE_DIRECTION = 1000,  //First ID should start at 1000
    FIELD_CAPSULE_DIRECTION_XP = 1,
    FIELD_CAPSULE_DIRECTION_XN = 2,
    FIELD_CAPSULE_DIRECTION_YP = 3,
    FIELD_CAPSULE_DIRECTION_YN = 4,
    FIELD_CAPSULE_DIRECTION_ZP = 5,
    FIELD_CAPSULE_DIRECTION_ZN = 6,
};
#endif	// FCAPSULE_H__

String File Code (Fcapsule.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  FIELD_CAPSULE_DIRECTION    "Direction";
    FIELD_CAPSULE_DIRECTION_XP    "X+";
    FIELD_CAPSULE_DIRECTION_XN    "X-";
    FIELD_CAPSULE_DIRECTION_YP    "Y+";
    FIELD_CAPSULE_DIRECTION_YN    "Y-";
    FIELD_CAPSULE_DIRECTION_ZP    "Z+";
    FIELD_CAPSULE_DIRECTION_ZN    "Z-";
}