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 CONNECTOBJECT_PHONG_MODE in Oconnector

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

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

Resource File Code (Oconnector.res)


LONG  CONNECTOBJECT_PHONG_MODE
{
                        
    CYCLE 
    {         CONNECTOBJECT_PHONG_MODE_MANUAL; 
        CONNECTOBJECT_PHONG_MODE_AVERAGE; 
        CONNECTOBJECT_PHONG_MODE_LOW; 
        CONNECTOBJECT_PHONG_MODE_HIGH; 
        CONNECTOBJECT_PHONG_MODE_TOBREAKS; 
    }
}
            

Header File Code (Oconnector.h)

#ifndef OCONNECTOR_H__
#define OCONNECTOR_H__
enum
{
  CONNECTOBJECT_PHONG_MODE = 1000,  //First ID should start at 1000
    CONNECTOBJECT_PHONG_MODE_MANUAL = 1,
    CONNECTOBJECT_PHONG_MODE_AVERAGE = 2,
    CONNECTOBJECT_PHONG_MODE_LOW = 3,
    CONNECTOBJECT_PHONG_MODE_HIGH = 4,
    CONNECTOBJECT_PHONG_MODE_TOBREAKS = 5,
};
#endif	// OCONNECTOR_H__

String File Code (Oconnector.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  CONNECTOBJECT_PHONG_MODE    "PhongMode";
    CONNECTOBJECT_PHONG_MODE_MANUAL    "Manual";
    CONNECTOBJECT_PHONG_MODE_AVERAGE    "Average";
    CONNECTOBJECT_PHONG_MODE_LOW    "Lowest";
    CONNECTOBJECT_PHONG_MODE_HIGH    "Highest";
    CONNECTOBJECT_PHONG_MODE_TOBREAKS    "AsBreaks";
}