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 EXTRUDEOBJECT_DIRECTION in Oextrude

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

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

Resource File Code (Oextrude.res)


LONG  EXTRUDEOBJECT_DIRECTION
{
ANIM  ON;                          
    CYCLE 
    {         EXTRUDEOBJECT_DIRECTION_AUTO; 
        EXTRUDEOBJECT_DIRECTION_X; 
        EXTRUDEOBJECT_DIRECTION_Y; 
        EXTRUDEOBJECT_DIRECTION_Z; 
        EXTRUDEOBJECT_DIRECTION_CUSTOM; 
        EXTRUDEOBJECT_DIRECTION_ABSOLUTE; 
    }
}
            

Header File Code (Oextrude.h)

#ifndef OEXTRUDE_H__
#define OEXTRUDE_H__
enum
{
  EXTRUDEOBJECT_DIRECTION = 1000,  //First ID should start at 1000
    EXTRUDEOBJECT_DIRECTION_AUTO = 1,
    EXTRUDEOBJECT_DIRECTION_X = 2,
    EXTRUDEOBJECT_DIRECTION_Y = 3,
    EXTRUDEOBJECT_DIRECTION_Z = 4,
    EXTRUDEOBJECT_DIRECTION_CUSTOM = 5,
    EXTRUDEOBJECT_DIRECTION_ABSOLUTE = 6,
};
#endif	// OEXTRUDE_H__

String File Code (Oextrude.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  EXTRUDEOBJECT_DIRECTION    "Direction";
    EXTRUDEOBJECT_DIRECTION_AUTO    "Auto";
    EXTRUDEOBJECT_DIRECTION_X    "X";
    EXTRUDEOBJECT_DIRECTION_Y    "Y";
    EXTRUDEOBJECT_DIRECTION_Z    "Z";
    EXTRUDEOBJECT_DIRECTION_CUSTOM    "Custom";
    EXTRUDEOBJECT_DIRECTION_ABSOLUTE    "Absolute";
}