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 MGSPLINEEFFECTOR_RELATIVEAXIS in Oespline

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

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

Resource File Code (Oespline.res)


LONG  MGSPLINEEFFECTOR_RELATIVEAXIS
{
                        
    CYCLE 
    {         MGSPLINEEFFECTOR_RELATIVEAXIS_X; 
        MGSPLINEEFFECTOR_RELATIVEAXIS_XNEG; 
        MGSPLINEEFFECTOR_RELATIVEAXIS_Y; 
        MGSPLINEEFFECTOR_RELATIVEAXIS_YNEG; 
        MGSPLINEEFFECTOR_RELATIVEAXIS_Z; 
        MGSPLINEEFFECTOR_RELATIVEAXIS_ZNEG; 
    }
}
            

Header File Code (Oespline.h)

#ifndef OESPLINE_H__
#define OESPLINE_H__
enum
{
  MGSPLINEEFFECTOR_RELATIVEAXIS = 1000,  //First ID should start at 1000
    MGSPLINEEFFECTOR_RELATIVEAXIS_X = 1,
    MGSPLINEEFFECTOR_RELATIVEAXIS_XNEG = 2,
    MGSPLINEEFFECTOR_RELATIVEAXIS_Y = 3,
    MGSPLINEEFFECTOR_RELATIVEAXIS_YNEG = 4,
    MGSPLINEEFFECTOR_RELATIVEAXIS_Z = 5,
    MGSPLINEEFFECTOR_RELATIVEAXIS_ZNEG = 6,
};
#endif	// OESPLINE_H__

String File Code (Oespline.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  MGSPLINEEFFECTOR_RELATIVEAXIS    "RelativeOffsetAxis";
    MGSPLINEEFFECTOR_RELATIVEAXIS_X    "+X";
    MGSPLINEEFFECTOR_RELATIVEAXIS_XNEG    "-X";
    MGSPLINEEFFECTOR_RELATIVEAXIS_Y    "+Y";
    MGSPLINEEFFECTOR_RELATIVEAXIS_YNEG    "-Y";
    MGSPLINEEFFECTOR_RELATIVEAXIS_Z    "+Z";
    MGSPLINEEFFECTOR_RELATIVEAXIS_ZNEG    "-Z";
}