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 ONION_MODE in Tdisplay

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

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

Resource File Code (Tdisplay.res)


LONG  ONION_MODE
{
PARENTCOLLAPSE  ;  ANIM  OFF;                          
    CYCLE 
    {         ONION_MODE_OBJECT; 
        ONION_MODE_POINT; 
        ONION_MODE_AXIS; 
        ONION_MODE_TRAIL; 
        ONION_MODE_MTRAIL; 
        ONION_MODE_VELOCITY; 
    }
}
            

Header File Code (Tdisplay.h)

#ifndef TDISPLAY_H__
#define TDISPLAY_H__
enum
{
  ONION_MODE = 1000,  //First ID should start at 1000
    ONION_MODE_OBJECT = 1,
    ONION_MODE_POINT = 2,
    ONION_MODE_AXIS = 3,
    ONION_MODE_TRAIL = 4,
    ONION_MODE_MTRAIL = 5,
    ONION_MODE_VELOCITY = 6,
};
#endif	// TDISPLAY_H__

String File Code (Tdisplay.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ONION_MODE    "DrawMode";
    ONION_MODE_OBJECT    "Object";
    ONION_MODE_POINT    "Point";
    ONION_MODE_AXIS    "Axis";
    ONION_MODE_TRAIL    "Trail";
    ONION_MODE_MTRAIL    "MultiTrail";
    ONION_MODE_VELOCITY    "Velocity";
}