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 DOCUMENT_DEFAULTMATERIAL_TYPE in Ddoc

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

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

Resource File Code (Ddoc.res)


LONG  DOCUMENT_DEFAULTMATERIAL_TYPE
{
ALIGN_LEFT  ;  ANIM  OFF;                          
    CYCLE 
    {         DOCUMENT_DEFAULTMATERIAL_TYPE_WHITE; 
        DOCUMENT_DEFAULTMATERIAL_TYPE_BLUE; 
        DOCUMENT_DEFAULTMATERIAL_TYPE_USER; 
    }
}
            

Header File Code (Ddoc.h)

#ifndef DDOC_H__
#define DDOC_H__
enum
{
  DOCUMENT_DEFAULTMATERIAL_TYPE = 1000,  //First ID should start at 1000
    DOCUMENT_DEFAULTMATERIAL_TYPE_WHITE = 1,
    DOCUMENT_DEFAULTMATERIAL_TYPE_BLUE = 2,
    DOCUMENT_DEFAULTMATERIAL_TYPE_USER = 3,
};
#endif	// DDOC_H__

String File Code (Ddoc.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  DOCUMENT_DEFAULTMATERIAL_TYPE    "DefaultObjectColor";
    DOCUMENT_DEFAULTMATERIAL_TYPE_WHITE    "60%Gray";
    DOCUMENT_DEFAULTMATERIAL_TYPE_BLUE    "Gray-Blue";
    DOCUMENT_DEFAULTMATERIAL_TYPE_USER    "Custom";
}