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 FORMULAOBJECT_EFFECT in Oformula

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

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

Resource File Code (Oformula.res)


LONG  FORMULAOBJECT_EFFECT
{
                        
    CYCLE 
    {         FOEFFECT_MANUAL; 
        FOEFFECT_SPHERICAL; 
        FOEFFECT_CYLINDRICAL; 
        FOEFFECT_XRADIAL; 
        FOEFFECT_YRADIAL; 
        FOEFFECT_ZRADIAL; 
    }
}
            

Header File Code (Oformula.h)

#ifndef OFORMULA_H__
#define OFORMULA_H__
enum
{
  FORMULAOBJECT_EFFECT = 1000,  //First ID should start at 1000
    FOEFFECT_MANUAL = 1,
    FOEFFECT_SPHERICAL = 2,
    FOEFFECT_CYLINDRICAL = 3,
    FOEFFECT_XRADIAL = 4,
    FOEFFECT_YRADIAL = 5,
    FOEFFECT_ZRADIAL = 6,
};
#endif	// OFORMULA_H__

String File Code (Oformula.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  FORMULAOBJECT_EFFECT    "Effect";
    FOEFFECT_MANUAL    "Manual";
    FOEFFECT_SPHERICAL    "Spherical";
    FOEFFECT_CYLINDRICAL    "Cylindrical";
    FOEFFECT_XRADIAL    "XRadial";
    FOEFFECT_YRADIAL    "YRadial";
    FOEFFECT_ZRADIAL    "ZRadial";
}