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 ID_BASEOBJECT_USECOLOR in Obase

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

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

Resource File Code (Obase.res)


LONG  ID_BASEOBJECT_USECOLOR
{
                        
    CYCLE 
    {         ID_BASEOBJECT_USECOLOR_OFF; 
        ID_BASEOBJECT_USECOLOR_AUTOMATIC; 
        ID_BASEOBJECT_USECOLOR_ALWAYS; 
        ID_BASEOBJECT_USECOLOR_LAYER; 
    }
}
            

Header File Code (Obase.h)

#ifndef OBASE_H__
#define OBASE_H__
enum
{
  ID_BASEOBJECT_USECOLOR = 1000,  //First ID should start at 1000
    ID_BASEOBJECT_USECOLOR_OFF = 1,
    ID_BASEOBJECT_USECOLOR_AUTOMATIC = 2,
    ID_BASEOBJECT_USECOLOR_ALWAYS = 3,
    ID_BASEOBJECT_USECOLOR_LAYER = 4,
};
#endif	// OBASE_H__

String File Code (Obase.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ID_BASEOBJECT_USECOLOR    "DisplayColor";
    ID_BASEOBJECT_USECOLOR_OFF    "Off";
    ID_BASEOBJECT_USECOLOR_AUTOMATIC    "Automatic";
    ID_BASEOBJECT_USECOLOR_ALWAYS    "On";
    ID_BASEOBJECT_USECOLOR_LAYER    "Layer";
}