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 XMSP_SPEED_OPERATION in Omspeed

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

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

Resource File Code (Omspeed.res)


LONG  XMSP_SPEED_OPERATION
{
                        
    CYCLE 
    {         SPEED_OP_INCR; 
        SPEED_OP_SPLINE; 
        SPEED_OP_ABSOLUTE; 
        SPEED_OP_ACCEL; 
    }
}
            

Header File Code (Omspeed.h)

#ifndef OMSPEED_H__
#define OMSPEED_H__
enum
{
  XMSP_SPEED_OPERATION = 1000,  //First ID should start at 1000
    SPEED_OP_INCR = 1,
    SPEED_OP_SPLINE = 2,
    SPEED_OP_ABSOLUTE = 3,
    SPEED_OP_ACCEL = 4,
};
#endif	// OMSPEED_H__

String File Code (Omspeed.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XMSP_SPEED_OPERATION    "Operation";
    SPEED_OP_INCR    "Incremental";
    SPEED_OP_SPLINE    "UseSpline";
    SPEED_OP_ABSOLUTE    "Absolute";
    SPEED_OP_ACCEL    "Acceleration";
}