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 MGTARGETEFFECTOR_PRIMITIVEAXIS in Oetarget

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

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

Resource File Code (Oetarget.res)


LONG  MGTARGETEFFECTOR_PRIMITIVEAXIS
{
                        
    CYCLE 
    {         MGTARGETEFFECTOR_PRIMITIVEAXIS_NONE; 
        MGTARGETEFFECTOR_PRIMITIVEAXIS_LINK; 
        MGTARGETEFFECTOR_PRIMITIVEAXIS_XP; 
        MGTARGETEFFECTOR_PRIMITIVEAXIS_XN; 
        MGTARGETEFFECTOR_PRIMITIVEAXIS_YP; 
        MGTARGETEFFECTOR_PRIMITIVEAXIS_YN; 
        MGTARGETEFFECTOR_PRIMITIVEAXIS_ZP; 
        MGTARGETEFFECTOR_PRIMITIVEAXIS_ZN; 
    }
}
            

Header File Code (Oetarget.h)

#ifndef OETARGET_H__
#define OETARGET_H__
enum
{
  MGTARGETEFFECTOR_PRIMITIVEAXIS = 1000,  //First ID should start at 1000
    MGTARGETEFFECTOR_PRIMITIVEAXIS_NONE = 1,
    MGTARGETEFFECTOR_PRIMITIVEAXIS_LINK = 2,
    MGTARGETEFFECTOR_PRIMITIVEAXIS_XP = 3,
    MGTARGETEFFECTOR_PRIMITIVEAXIS_XN = 4,
    MGTARGETEFFECTOR_PRIMITIVEAXIS_YP = 5,
    MGTARGETEFFECTOR_PRIMITIVEAXIS_YN = 6,
    MGTARGETEFFECTOR_PRIMITIVEAXIS_ZP = 7,
    MGTARGETEFFECTOR_PRIMITIVEAXIS_ZN = 8,
};
#endif	// OETARGET_H__

String File Code (Oetarget.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  MGTARGETEFFECTOR_PRIMITIVEAXIS    "UpVector";
    MGTARGETEFFECTOR_PRIMITIVEAXIS_NONE    "None";
    MGTARGETEFFECTOR_PRIMITIVEAXIS_LINK    "Object";
    MGTARGETEFFECTOR_PRIMITIVEAXIS_XP    "X+";
    MGTARGETEFFECTOR_PRIMITIVEAXIS_XN    "X-";
    MGTARGETEFFECTOR_PRIMITIVEAXIS_YP    "Y+";
    MGTARGETEFFECTOR_PRIMITIVEAXIS_YN    "Y-";
    MGTARGETEFFECTOR_PRIMITIVEAXIS_ZP    "Z+";
    MGTARGETEFFECTOR_PRIMITIVEAXIS_ZN    "Z-";
}