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 TFLIP_SHAPE in Txflip

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

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

Resource File Code (Txflip.res)


LONG  TFLIP_SHAPE
{
                        
    CYCLE 
    {         TFLIP_SHAPE_SURFACE; 
        TFLIP_SHAPE_SURFACE_NORMALS; 
        TFLIP_SHAPE_VOLUME; 
    }
}
            

Header File Code (Txflip.h)

#ifndef TXFLIP_H__
#define TXFLIP_H__
enum
{
  TFLIP_SHAPE = 1000,  //First ID should start at 1000
    TFLIP_SHAPE_SURFACE = 1,
    TFLIP_SHAPE_SURFACE_NORMALS = 2,
    TFLIP_SHAPE_VOLUME = 3,
};
#endif	// TXFLIP_H__

String File Code (Txflip.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  TFLIP_SHAPE    "Shape";
    TFLIP_SHAPE_SURFACE    "Surface";
    TFLIP_SHAPE_SURFACE_NORMALS    "Surface(Outwards)";
    TFLIP_SHAPE_VOLUME    "Volume";
}