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_PREVIEW_COMMAND 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_PREVIEW_COMMAND
{
SCALE_H  ;  ANIM  OFF;  CUSTOMGUI  CYCLE;                          
    CYCLE 
    {         DOCUMENT_PREVIEW_COMMAND_AUTO; 
        DOCUMENT_PREVIEW_COMMAND_PASTE; 
        DOCUMENT_PREVIEW_COMMAND_FROMEDITOR; 
        DOCUMENT_PREVIEW_COMMAND_LOAD; 
    }
}
            

Header File Code (Ddoc.h)

#ifndef DDOC_H__
#define DDOC_H__
enum
{
  DOCUMENT_PREVIEW_COMMAND = 1000,  //First ID should start at 1000
    DOCUMENT_PREVIEW_COMMAND_AUTO = 1,
    DOCUMENT_PREVIEW_COMMAND_PASTE = 2,
    DOCUMENT_PREVIEW_COMMAND_FROMEDITOR = 3,
    DOCUMENT_PREVIEW_COMMAND_LOAD = 4,
};
#endif	// DDOC_H__

String File Code (Ddoc.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  DOCUMENT_PREVIEW_COMMAND    "PreviewCommand";
    DOCUMENT_PREVIEW_COMMAND_AUTO    "AutoSaveEditor";
    DOCUMENT_PREVIEW_COMMAND_PASTE    "PastefromClipboard";
    DOCUMENT_PREVIEW_COMMAND_FROMEDITOR    "CopyfromEditor";
    DOCUMENT_PREVIEW_COMMAND_LOAD    "LoadfromFile...";
}