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 XSP_SPRITE_TYPE in Oxpsprite

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

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

Resource File Code (Oxpsprite.res)


LONG  XSP_SPRITE_TYPE
{
                        
    CYCLE 
    {         XSP_SPRITE_DOT; 
        XSP_SPRITE_TICK; 
        XSP_SPRITE_PLACARD; 
        XSP_SPRITE_SPHERE; 
        XSP_SPRITE_CYCLINDER; 
        XSP_SPRITE_CAPSULE; 
        XSP_SPRITE_CONE; 
        XSP_SPRITE_PYRAMID; 
        XSP_SPRITE_DISC; 
        XSP_SPRITE_3PLANE; 
        XSP_SPRITE_LIGHT; 
        XSP_SPRITE_POINT; 
        XSP_SPRITE_POINTCLOUD; 
        XSP_SPRITE_TEXT; 
        XSP_SPRITE_RUBBLE; 
    }
}
            

Header File Code (Oxpsprite.h)

#ifndef OXPSPRITE_H__
#define OXPSPRITE_H__
enum
{
  XSP_SPRITE_TYPE = 1000,  //First ID should start at 1000
    XSP_SPRITE_DOT = 1,
    XSP_SPRITE_TICK = 2,
    XSP_SPRITE_PLACARD = 3,
    XSP_SPRITE_SPHERE = 4,
    XSP_SPRITE_CYCLINDER = 5,
    XSP_SPRITE_CAPSULE = 6,
    XSP_SPRITE_CONE = 7,
    XSP_SPRITE_PYRAMID = 8,
    XSP_SPRITE_DISC = 9,
    XSP_SPRITE_3PLANE = 10,
    XSP_SPRITE_LIGHT = 11,
    XSP_SPRITE_POINT = 12,
    XSP_SPRITE_POINTCLOUD = 13,
    XSP_SPRITE_TEXT = 14,
    XSP_SPRITE_RUBBLE = 15,
};
#endif	// OXPSPRITE_H__

String File Code (Oxpsprite.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XSP_SPRITE_TYPE    "SpriteType";
    XSP_SPRITE_DOT    "Cube";
    XSP_SPRITE_TICK    "Cross";
    XSP_SPRITE_PLACARD    "Placard";
    XSP_SPRITE_SPHERE    "Sphere";
    XSP_SPRITE_CYCLINDER    "Cylinder";
    XSP_SPRITE_CAPSULE    "Capsule";
    XSP_SPRITE_CONE    "Cone";
    XSP_SPRITE_PYRAMID    "Pyramid";
    XSP_SPRITE_DISC    "Disc";
    XSP_SPRITE_3PLANE    "3-Plane";
    XSP_SPRITE_LIGHT    "Light";
    XSP_SPRITE_POINT    "Points(Individual)";
    XSP_SPRITE_POINTCLOUD    "Points(PointCloud)";
    XSP_SPRITE_TEXT    "Text";
    XSP_SPRITE_RUBBLE    "Rubble";
}