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 XBME_BRMESH_SUBPOLY in Oxpbranchmesh

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

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

Resource File Code (Oxpbranchmesh.res)


LONG  XBME_BRMESH_SUBPOLY
{
                        
    CYCLE 
    {         XBME_BRMESH_SUBPOLY_INTERSECT; 
        XBME_BRMESH_SUBPOLY_CLOSEST_ORIGIN; 
        XBME_BRMESH_SUBPOLY_CLOSEST_OFFSET; 
    }
}
            

Header File Code (Oxpbranchmesh.h)

#ifndef OXPBRANCHMESH_H__
#define OXPBRANCHMESH_H__
enum
{
  XBME_BRMESH_SUBPOLY = 1000,  //First ID should start at 1000
    XBME_BRMESH_SUBPOLY_INTERSECT = 1,
    XBME_BRMESH_SUBPOLY_CLOSEST_ORIGIN = 2,
    XBME_BRMESH_SUBPOLY_CLOSEST_OFFSET = 3,
};
#endif	// OXPBRANCHMESH_H__

String File Code (Oxpbranchmesh.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XBME_BRMESH_SUBPOLY    "Sub-BranchJoin";
    XBME_BRMESH_SUBPOLY_INTERSECT    "Intersection";
    XBME_BRMESH_SUBPOLY_CLOSEST_ORIGIN    "FirstPoint";
    XBME_BRMESH_SUBPOLY_CLOSEST_OFFSET    "OffsetPosition";
}