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_CA_PROJOBJS_CTRL_MODE in Dprojobjs

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

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

Resource File Code (Dprojobjs.res)


LONG  ID_CA_PROJOBJS_CTRL_MODE
{
                        
    CYCLE 
    {         ID_CA_PROJOBJS_MODE_PROJECT; 
        ID_CA_PROJOBJS_MODE_SURFACE; 
        ID_CA_PROJOBJS_MODE_POINTS; 
        ID_CA_PROJOBJS_MODE_COLLIDE; 
    }
}
            

Header File Code (Dprojobjs.h)

#ifndef DPROJOBJS_H__
#define DPROJOBJS_H__
enum
{
  ID_CA_PROJOBJS_CTRL_MODE = 1000,  //First ID should start at 1000
    ID_CA_PROJOBJS_MODE_PROJECT = 1,
    ID_CA_PROJOBJS_MODE_SURFACE = 2,
    ID_CA_PROJOBJS_MODE_POINTS = 3,
    ID_CA_PROJOBJS_MODE_COLLIDE = 4,
};
#endif	// DPROJOBJS_H__

String File Code (Dprojobjs.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ID_CA_PROJOBJS_CTRL_MODE    "Control";
    ID_CA_PROJOBJS_MODE_PROJECT    "ProjectInside";
    ID_CA_PROJOBJS_MODE_SURFACE    "ProjecttoSurface";
    ID_CA_PROJOBJS_MODE_POINTS    "PointstoSurface";
    ID_CA_PROJOBJS_MODE_COLLIDE    "Collide";
}