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_CLIPPING_PRESET 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_CLIPPING_PRESET
{
ALIGN_LEFT  ;  ANIM  OFF;  PARENTCOLLAPSE  ;                          
    CYCLE 
    {         DOCUMENT_CLIPPING_PRESET_TINY; 
        DOCUMENT_CLIPPING_PRESET_SMALL; 
        DOCUMENT_CLIPPING_PRESET_MEDIUM; 
        DOCUMENT_CLIPPING_PRESET_LARGE; 
        DOCUMENT_CLIPPING_PRESET_HUGE; 
        DOCUMENT_CLIPPING_PRESET_CUSTOM; 
    }
}
            

Header File Code (Ddoc.h)

#ifndef DDOC_H__
#define DDOC_H__
enum
{
  DOCUMENT_CLIPPING_PRESET = 1000,  //First ID should start at 1000
    DOCUMENT_CLIPPING_PRESET_TINY = 1,
    DOCUMENT_CLIPPING_PRESET_SMALL = 2,
    DOCUMENT_CLIPPING_PRESET_MEDIUM = 3,
    DOCUMENT_CLIPPING_PRESET_LARGE = 4,
    DOCUMENT_CLIPPING_PRESET_HUGE = 5,
    DOCUMENT_CLIPPING_PRESET_CUSTOM = 6,
};
#endif	// DDOC_H__

String File Code (Ddoc.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  DOCUMENT_CLIPPING_PRESET    "ViewClipping";
    DOCUMENT_CLIPPING_PRESET_TINY    "Tiny";
    DOCUMENT_CLIPPING_PRESET_SMALL    "Small";
    DOCUMENT_CLIPPING_PRESET_MEDIUM    "Medium";
    DOCUMENT_CLIPPING_PRESET_LARGE    "Large";
    DOCUMENT_CLIPPING_PRESET_HUGE    "Huge";
    DOCUMENT_CLIPPING_PRESET_CUSTOM    "Custom";
}