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_XP_TOOL_PAINT_MODE in Xptoolpaint

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

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

Resource File Code (Xptoolpaint.res)


LONG  ID_XP_TOOL_PAINT_MODE
{
                        
    CYCLE 
    {         ID_XP_TOOL_PAINT_MODE_CREATE; 
        ID_XP_TOOL_PAINT_MODE_KILL; 
        ID_XP_TOOL_PAINT_MODE_PAINT_LIFE; 
        ID_XP_TOOL_PAINT_MODE_PAINT_COLOR; 
        ID_XP_TOOL_PAINT_MODE_PAINT_SPEED; 
        ID_XP_TOOL_PAINT_MODE_PAINT_RADIUS; 
        ID_XP_TOOL_PAINT_MODE_PAINT_ROT; 
    }
}
            

Header File Code (Xptoolpaint.h)

#ifndef XPTOOLPAINT_H__
#define XPTOOLPAINT_H__
enum
{
  ID_XP_TOOL_PAINT_MODE = 1000,  //First ID should start at 1000
    ID_XP_TOOL_PAINT_MODE_CREATE = 1,
    ID_XP_TOOL_PAINT_MODE_KILL = 2,
    ID_XP_TOOL_PAINT_MODE_PAINT_LIFE = 3,
    ID_XP_TOOL_PAINT_MODE_PAINT_COLOR = 4,
    ID_XP_TOOL_PAINT_MODE_PAINT_SPEED = 5,
    ID_XP_TOOL_PAINT_MODE_PAINT_RADIUS = 6,
    ID_XP_TOOL_PAINT_MODE_PAINT_ROT = 7,
};
#endif	// XPTOOLPAINT_H__

String File Code (Xptoolpaint.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ID_XP_TOOL_PAINT_MODE    "Mode";
    ID_XP_TOOL_PAINT_MODE_CREATE    "Create";
    ID_XP_TOOL_PAINT_MODE_KILL    "DeleteParticles";
    ID_XP_TOOL_PAINT_MODE_PAINT_LIFE    "PaintLife";
    ID_XP_TOOL_PAINT_MODE_PAINT_COLOR    "PaintColor";
    ID_XP_TOOL_PAINT_MODE_PAINT_SPEED    "PaintSpeed";
    ID_XP_TOOL_PAINT_MODE_PAINT_RADIUS    "PaintRadius";
    ID_XP_TOOL_PAINT_MODE_PAINT_ROT    "PaintRotation";
}