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 HAIR_RENDER_TAG_MODE in Thairrender

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

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

Resource File Code (Thairrender.res)


LONG  HAIR_RENDER_TAG_MODE
{
                        
    CYCLE 
    {         HAIR_RENDER_TAG_MODE_POINTS; 
        HAIR_RENDER_TAG_MODE_SURFACE; 
        HAIR_RENDER_TAG_MODE_LINE; 
        HAIR_RENDER_TAG_MODE_INTERPOLATED; 
        HAIR_RENDER_TAG_MODE_POSITION; 
        HAIR_RENDER_TAG_MODE_VELOCITY; 
        HAIR_RENDER_TAG_MODE_TRAIL; 
    }
}
            

Header File Code (Thairrender.h)

#ifndef THAIRRENDER_H__
#define THAIRRENDER_H__
enum
{
  HAIR_RENDER_TAG_MODE = 1000,  //First ID should start at 1000
    HAIR_RENDER_TAG_MODE_POINTS = 1,
    HAIR_RENDER_TAG_MODE_SURFACE = 2,
    HAIR_RENDER_TAG_MODE_LINE = 3,
    HAIR_RENDER_TAG_MODE_INTERPOLATED = 4,
    HAIR_RENDER_TAG_MODE_POSITION = 5,
    HAIR_RENDER_TAG_MODE_VELOCITY = 6,
    HAIR_RENDER_TAG_MODE_TRAIL = 7,
};
#endif	// THAIRRENDER_H__

String File Code (Thairrender.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  HAIR_RENDER_TAG_MODE    "Mode";
    HAIR_RENDER_TAG_MODE_POINTS    "Points";
    HAIR_RENDER_TAG_MODE_SURFACE    "Surface";
    HAIR_RENDER_TAG_MODE_LINE    "Line";
    HAIR_RENDER_TAG_MODE_INTERPOLATED    "Interpolated";
    HAIR_RENDER_TAG_MODE_POSITION    "Position";
    HAIR_RENDER_TAG_MODE_VELOCITY    "Velocity";
    HAIR_RENDER_TAG_MODE_TRAIL    "Trail";
}