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_MG_MOTIONGENERATOR_MODE in Obasemogen

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

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

Resource File Code (Obasemogen.res)


LONG  ID_MG_MOTIONGENERATOR_MODE
{
FIT_H  ;                          
    CYCLE 
    {         ID_MG_MOTIONGENERATOR_MODE_OBJECT; 
        440000016; 
        ID_MG_MOTIONGENERATOR_MODE_LINEAR; 
        440000017; 
        ID_MG_MOTIONGENERATOR_MODE_RADIAL; 
        440000018; 
        ID_MG_MOTIONGENERATOR_MODE_GRIDARRAY; 
        440000019; 
        ID_MG_MOTIONGENERATOR_MODE_HEXARRAY; 
        440000235; 
    }
}
            

Header File Code (Obasemogen.h)

#ifndef OBASEMOGEN_H__
#define OBASEMOGEN_H__
enum
{
  ID_MG_MOTIONGENERATOR_MODE = 1000,  //First ID should start at 1000
    ID_MG_MOTIONGENERATOR_MODE_OBJECT = 1,
    440000016 = 2,
    ID_MG_MOTIONGENERATOR_MODE_LINEAR = 3,
    440000017 = 4,
    ID_MG_MOTIONGENERATOR_MODE_RADIAL = 5,
    440000018 = 6,
    ID_MG_MOTIONGENERATOR_MODE_GRIDARRAY = 7,
    440000019 = 8,
    ID_MG_MOTIONGENERATOR_MODE_HEXARRAY = 9,
    440000235 = 10,
};
#endif	// OBASEMOGEN_H__

String File Code (Obasemogen.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ID_MG_MOTIONGENERATOR_MODE    "Mode";
    ID_MG_MOTIONGENERATOR_MODE_OBJECT    "Object";
    440000016    "";
    ID_MG_MOTIONGENERATOR_MODE_LINEAR    "Linear";
    440000017    "";
    ID_MG_MOTIONGENERATOR_MODE_RADIAL    "Radial";
    440000018    "";
    ID_MG_MOTIONGENERATOR_MODE_GRIDARRAY    "GridArray";
    440000019    "";
    ID_MG_MOTIONGENERATOR_MODE_HEXARRAY    "HoneycombArray";
    440000235    "";
}