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 MGRANDOMEFFECTOR_MODE in Oerandomize

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

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

Resource File Code (Oerandomize.res)


LONG  MGRANDOMEFFECTOR_MODE
{
FIT_H  ;                          
    CYCLE 
    {         MGRANDOMEFFECTOR_MODE_RANDOM; 
        MGRANDOMEFFECTOR_MODE_GAUSIAN; 
        MGRANDOMEFFECTOR_MODE_NOISE; 
        MGRANDOMEFFECTOR_MODE_TURBULENCE; 
        MGRANDOMEFFECTOR_MODE_SORT; 
    }
}
            

Header File Code (Oerandomize.h)

#ifndef OERANDOMIZE_H__
#define OERANDOMIZE_H__
enum
{
  MGRANDOMEFFECTOR_MODE = 1000,  //First ID should start at 1000
    MGRANDOMEFFECTOR_MODE_RANDOM = 1,
    MGRANDOMEFFECTOR_MODE_GAUSIAN = 2,
    MGRANDOMEFFECTOR_MODE_NOISE = 3,
    MGRANDOMEFFECTOR_MODE_TURBULENCE = 4,
    MGRANDOMEFFECTOR_MODE_SORT = 5,
};
#endif	// OERANDOMIZE_H__

String File Code (Oerandomize.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  MGRANDOMEFFECTOR_MODE    "RandomMode";
    MGRANDOMEFFECTOR_MODE_RANDOM    "Random";
    MGRANDOMEFFECTOR_MODE_GAUSIAN    "Gaussian";
    MGRANDOMEFFECTOR_MODE_NOISE    "Noise";
    MGRANDOMEFFECTOR_MODE_TURBULENCE    "Turbulence";
    MGRANDOMEFFECTOR_MODE_SORT    "Sorted";
}