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 WOODSHADER_COLOR_PRESET in xwood

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

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

Resource File Code (xwood.res)


LONG  WOODSHADER_COLOR_PRESET
{
ANIM  OFF;                          
    CYCLE 
    {         WOODSHADER_COLOR_PRESET_CUSTOM; 
        WOODSHADER_COLOR_PRESET_WALNUT; 
        WOODSHADER_COLOR_PRESET_MAHAGONY; 
        WOODSHADER_COLOR_PRESET_JACARANDA; 
        WOODSHADER_COLOR_PRESET_PINEWOOD; 
    }
}
            

Header File Code (xwood.h)

#ifndef XWOOD_H__
#define XWOOD_H__
enum
{
  WOODSHADER_COLOR_PRESET = 1000,  //First ID should start at 1000
    WOODSHADER_COLOR_PRESET_CUSTOM = 1,
    WOODSHADER_COLOR_PRESET_WALNUT = 2,
    WOODSHADER_COLOR_PRESET_MAHAGONY = 3,
    WOODSHADER_COLOR_PRESET_JACARANDA = 4,
    WOODSHADER_COLOR_PRESET_PINEWOOD = 5,
};
#endif	// XWOOD_H__

String File Code (xwood.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  WOODSHADER_COLOR_PRESET    "Type";
    WOODSHADER_COLOR_PRESET_CUSTOM    "Custom";
    WOODSHADER_COLOR_PRESET_WALNUT    "Walnut";
    WOODSHADER_COLOR_PRESET_MAHAGONY    "Mahogany";
    WOODSHADER_COLOR_PRESET_JACARANDA    "Jacaranda";
    WOODSHADER_COLOR_PRESET_PINEWOOD    "Pinewood";
}