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 ID_PAINTSPLINETEXT_ALIGN in BPsplinetext

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

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

Resource File Code (BPsplinetext.res)


LONG  ID_PAINTSPLINETEXT_ALIGN
{
                        
    CYCLE 
    {         0; 
        PAINTSPLINETEXT_ALIGN_LEFT; 
        1; 
        PAINTSPLINETEXT_ALIGN_CENTER; 
        2; 
        PAINTSPLINETEXT_ALIGN_RIGHT; 
    }
}
            

Header File Code (BPsplinetext.h)

#ifndef BPSPLINETEXT_H__
#define BPSPLINETEXT_H__
enum
{
  ID_PAINTSPLINETEXT_ALIGN = 1000,  //First ID should start at 1000
    0 = 1,
    PAINTSPLINETEXT_ALIGN_LEFT = 2,
    1 = 3,
    PAINTSPLINETEXT_ALIGN_CENTER = 4,
    2 = 5,
    PAINTSPLINETEXT_ALIGN_RIGHT = 6,
};
#endif	// BPSPLINETEXT_H__

String File Code (BPsplinetext.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ID_PAINTSPLINETEXT_ALIGN    "Align";
    0    "";
    PAINTSPLINETEXT_ALIGN_LEFT    "Left";
    1    "";
    PAINTSPLINETEXT_ALIGN_CENTER    "Center";
    2    "";
    PAINTSPLINETEXT_ALIGN_RIGHT    "Right";
}