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 PRIM_PLATONIC_TYPE in Oplatonic

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

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

Resource File Code (Oplatonic.res)


LONG  PRIM_PLATONIC_TYPE
{
                        
    CYCLE 
    {         PRIM_PLATONIC_TYPE_TETRA; 
        PRIM_PLATONIC_TYPE_HEXA; 
        PRIM_PLATONIC_TYPE_OCTA; 
        PRIM_PLATONIC_TYPE_DODECA; 
        PRIM_PLATONIC_TYPE_ICOSA; 
        PRIM_PLATONIC_TYPE_BUCKY; 
    }
}
            

Header File Code (Oplatonic.h)

#ifndef OPLATONIC_H__
#define OPLATONIC_H__
enum
{
  PRIM_PLATONIC_TYPE = 1000,  //First ID should start at 1000
    PRIM_PLATONIC_TYPE_TETRA = 1,
    PRIM_PLATONIC_TYPE_HEXA = 2,
    PRIM_PLATONIC_TYPE_OCTA = 3,
    PRIM_PLATONIC_TYPE_DODECA = 4,
    PRIM_PLATONIC_TYPE_ICOSA = 5,
    PRIM_PLATONIC_TYPE_BUCKY = 6,
};
#endif	// OPLATONIC_H__

String File Code (Oplatonic.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  PRIM_PLATONIC_TYPE    "Type";
    PRIM_PLATONIC_TYPE_TETRA    "Tetra";
    PRIM_PLATONIC_TYPE_HEXA    "Hexa";
    PRIM_PLATONIC_TYPE_OCTA    "Octa";
    PRIM_PLATONIC_TYPE_DODECA    "Dodeca";
    PRIM_PLATONIC_TYPE_ICOSA    "Icosa";
    PRIM_PLATONIC_TYPE_BUCKY    "Bucky";
}