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 MG_GRID_UVAXIS in MGgridarray

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

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

Resource File Code (MGgridarray.res)


LONG  MG_GRID_UVAXIS
{
                        
    CYCLE 
    {         MG_GRID_UVAXIS_XP; 
        MG_GRID_UVAXIS_XN; 
        MG_GRID_UVAXIS_YP; 
        MG_GRID_UVAXIS_YN; 
        MG_GRID_UVAXIS_ZP; 
        MG_GRID_UVAXIS_ZN; 
    }
}
            

Header File Code (MGgridarray.h)

#ifndef MGGRIDARRAY_H__
#define MGGRIDARRAY_H__
enum
{
  MG_GRID_UVAXIS = 1000,  //First ID should start at 1000
    MG_GRID_UVAXIS_XP = 1,
    MG_GRID_UVAXIS_XN = 2,
    MG_GRID_UVAXIS_YP = 3,
    MG_GRID_UVAXIS_YN = 4,
    MG_GRID_UVAXIS_ZP = 5,
    MG_GRID_UVAXIS_ZN = 6,
};
#endif	// MGGRIDARRAY_H__

String File Code (MGgridarray.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  MG_GRID_UVAXIS    "W(UV)-Orientation";
    MG_GRID_UVAXIS_XP    "X+";
    MG_GRID_UVAXIS_XN    "X-";
    MG_GRID_UVAXIS_YP    "Y+";
    MG_GRID_UVAXIS_YN    "Y-";
    MG_GRID_UVAXIS_ZP    "Z+";
    MG_GRID_UVAXIS_ZN    "Z-";
}