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 ALIGN_TYPE in OP_Alignment

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

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

Resource File Code (OP_Alignment.res)


LONG  ALIGN_TYPE
{
INPORT  ;  EDITPORT  ;                          
    CYCLE 
    {         ALIGN_TYPE_NONE; 
        ALIGN_TYPE_RANDOM; 
        ALIGN_TYPE_TRAVEL; 
        ALIGN_TYPE_X; 
        ALIGN_TYPE_Y; 
        ALIGN_TYPE_Z; 
        ALIGN_TYPE_USERDIR; 
        ALIGN_TYPE_USERPOS; 
    }
}
            

Header File Code (OP_Alignment.h)

#ifndef OP_ALIGNMENT_H__
#define OP_ALIGNMENT_H__
enum
{
  ALIGN_TYPE = 1000,  //First ID should start at 1000
    ALIGN_TYPE_NONE = 1,
    ALIGN_TYPE_RANDOM = 2,
    ALIGN_TYPE_TRAVEL = 3,
    ALIGN_TYPE_X = 4,
    ALIGN_TYPE_Y = 5,
    ALIGN_TYPE_Z = 6,
    ALIGN_TYPE_USERDIR = 7,
    ALIGN_TYPE_USERPOS = 8,
};
#endif	// OP_ALIGNMENT_H__

String File Code (OP_Alignment.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ALIGN_TYPE    "Type";
    ALIGN_TYPE_NONE    "None";
    ALIGN_TYPE_RANDOM    "Random";
    ALIGN_TYPE_TRAVEL    "DirectionOfTravel";
    ALIGN_TYPE_X    "WorldX";
    ALIGN_TYPE_Y    "WorldY";
    ALIGN_TYPE_Z    "WorldZ";
    ALIGN_TYPE_USERDIR    "UserDirection";
    ALIGN_TYPE_USERPOS    "UserPosition";
}