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 FORCE_APPLICATION_B in DynInteraction

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

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

Resource File Code (DynInteraction.res)


LONG  FORCE_APPLICATION_B
{
                        
    CYCLE 
    {         FORCE_APPLICATION_COM; 
        FORCE_APPLICATION_OFFSET; 
        FORCE_APPLICATION_POLYPOINT; 
        FORCE_APPLICATION_POINT_SELECTION; 
    }
}
            

Header File Code (DynInteraction.h)

#ifndef DYNINTERACTION_H__
#define DYNINTERACTION_H__
enum
{
  FORCE_APPLICATION_B = 1000,  //First ID should start at 1000
    FORCE_APPLICATION_COM = 1,
    FORCE_APPLICATION_OFFSET = 2,
    FORCE_APPLICATION_POLYPOINT = 3,
    FORCE_APPLICATION_POINT_SELECTION = 4,
};
#endif	// DYNINTERACTION_H__

String File Code (DynInteraction.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  FORCE_APPLICATION_B    "AttachmentB";
    FORCE_APPLICATION_COM    "CenterofMass";
    FORCE_APPLICATION_OFFSET    "Offset";
    FORCE_APPLICATION_POLYPOINT    "PolygonPoint";
    FORCE_APPLICATION_POINT_SELECTION    "PointSelection";
}