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_MG_BASEEFFECTOR_COLOR_BLEND in Obaseeffector

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

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

Resource File Code (Obaseeffector.res)


LONG  ID_MG_BASEEFFECTOR_COLOR_BLEND
{
                        
    CYCLE 
    {         ID_MG_BASEEFFECTOR_COLOR_BLEND_DEFAULT; 
        ID_MG_BASEEFFECTOR_COLOR_BLEND_ADD; 
        ID_MG_BASEEFFECTOR_COLOR_BLEND_SUB; 
        ID_MG_BASEEFFECTOR_COLOR_BLEND_MUL; 
        ID_MG_BASEEFFECTOR_COLOR_BLEND_DIV; 
    }
}
            

Header File Code (Obaseeffector.h)

#ifndef OBASEEFFECTOR_H__
#define OBASEEFFECTOR_H__
enum
{
  ID_MG_BASEEFFECTOR_COLOR_BLEND = 1000,  //First ID should start at 1000
    ID_MG_BASEEFFECTOR_COLOR_BLEND_DEFAULT = 1,
    ID_MG_BASEEFFECTOR_COLOR_BLEND_ADD = 2,
    ID_MG_BASEEFFECTOR_COLOR_BLEND_SUB = 3,
    ID_MG_BASEEFFECTOR_COLOR_BLEND_MUL = 4,
    ID_MG_BASEEFFECTOR_COLOR_BLEND_DIV = 5,
};
#endif	// OBASEEFFECTOR_H__

String File Code (Obaseeffector.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ID_MG_BASEEFFECTOR_COLOR_BLEND    "BlendingMode";
    ID_MG_BASEEFFECTOR_COLOR_BLEND_DEFAULT    "Default";
    ID_MG_BASEEFFECTOR_COLOR_BLEND_ADD    "Add";
    ID_MG_BASEEFFECTOR_COLOR_BLEND_SUB    "Subtract";
    ID_MG_BASEEFFECTOR_COLOR_BLEND_MUL    "Multiply";
    ID_MG_BASEEFFECTOR_COLOR_BLEND_DIV    "Divide";
}