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 XMSR_SPRITE_TYPE in Omsprite

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

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

Resource File Code (Omsprite.res)


LONG  XMSR_SPRITE_TYPE
{
                        
    CYCLE 
    {         XMSR_SPRITE_DOT; 
        XMSR_SPRITE_TICK; 
        XMSR_SPRITE_PLACARD; 
        XMSR_SPRITE_SPHERE; 
        XMSR_SPRITE_CONE; 
        XMSR_SPRITE_PYRAMID; 
        XMSR_SPRITE_DISC; 
        XMSR_SPRITE_3PLANE; 
        XMSR_SPRITE_LIGHT; 
        XMSR_SPRITE_POINT; 
        XMSR_SPRITE_TEXT; 
    }
}
            

Header File Code (Omsprite.h)

#ifndef OMSPRITE_H__
#define OMSPRITE_H__
enum
{
  XMSR_SPRITE_TYPE = 1000,  //First ID should start at 1000
    XMSR_SPRITE_DOT = 1,
    XMSR_SPRITE_TICK = 2,
    XMSR_SPRITE_PLACARD = 3,
    XMSR_SPRITE_SPHERE = 4,
    XMSR_SPRITE_CONE = 5,
    XMSR_SPRITE_PYRAMID = 6,
    XMSR_SPRITE_DISC = 7,
    XMSR_SPRITE_3PLANE = 8,
    XMSR_SPRITE_LIGHT = 9,
    XMSR_SPRITE_POINT = 10,
    XMSR_SPRITE_TEXT = 11,
};
#endif	// OMSPRITE_H__

String File Code (Omsprite.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XMSR_SPRITE_TYPE    "SpriteType";
    XMSR_SPRITE_DOT    "Cube";
    XMSR_SPRITE_TICK    "Cross";
    XMSR_SPRITE_PLACARD    "Placard";
    XMSR_SPRITE_SPHERE    "Sphere";
    XMSR_SPRITE_CONE    "Cone";
    XMSR_SPRITE_PYRAMID    "Pyramid";
    XMSR_SPRITE_DISC    "Disc";
    XMSR_SPRITE_3PLANE    "3-Plane";
    XMSR_SPRITE_LIGHT    "Light";
    XMSR_SPRITE_POINT    "Points";
    XMSR_SPRITE_TEXT    "Text";
}