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 CACHE_TOOL_FALLOFF_MODE in CacheTool

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

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

Resource File Code (CacheTool.res)


LONG  CACHE_TOOL_FALLOFF_MODE
{
ALIGN_LEFT  ;                          
    CYCLE 
    {         CACHE_TOOL_MODE_CONSTANT; 
        CACHE_TOOL_MODE_LINEAR; 
        CACHE_TOOL_MODE_DOME; 
        CACHE_TOOL_MODE_BELL; 
        CACHE_TOOL_MODE_CIRCLE; 
        CACHE_TOOL_MODE_NEEDLE; 
        CACHE_TOOL_MODE_USER; 
    }
}
            

Header File Code (CacheTool.h)

#ifndef CACHETOOL_H__
#define CACHETOOL_H__
enum
{
  CACHE_TOOL_FALLOFF_MODE = 1000,  //First ID should start at 1000
    CACHE_TOOL_MODE_CONSTANT = 1,
    CACHE_TOOL_MODE_LINEAR = 2,
    CACHE_TOOL_MODE_DOME = 3,
    CACHE_TOOL_MODE_BELL = 4,
    CACHE_TOOL_MODE_CIRCLE = 5,
    CACHE_TOOL_MODE_NEEDLE = 6,
    CACHE_TOOL_MODE_USER = 7,
};
#endif	// CACHETOOL_H__

String File Code (CacheTool.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  CACHE_TOOL_FALLOFF_MODE    "Falloff";
    CACHE_TOOL_MODE_CONSTANT    "Constant";
    CACHE_TOOL_MODE_LINEAR    "Linear";
    CACHE_TOOL_MODE_DOME    "Dome";
    CACHE_TOOL_MODE_BELL    "Bell";
    CACHE_TOOL_MODE_CIRCLE    "Circle";
    CACHE_TOOL_MODE_NEEDLE    "Needle";
    CACHE_TOOL_MODE_USER    "Spline";
}