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 FIELDLAYER_CHANNELMIX_VALUE in FLChannelMix

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

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

Resource File Code (FLChannelMix.res)


LONG  FIELDLAYER_CHANNELMIX_VALUE
{
                        
    CYCLE 
    {         FIELDLAYER_CHANNELMIX_SOURCE_VALUE; 
        -1; 
        FIELDLAYER_CHANNELMIX_SOURCE_COLOR; 
        FIELDLAYER_CHANNELMIX_SOURCE_COLOR_R; 
        FIELDLAYER_CHANNELMIX_SOURCE_COLOR_G; 
        FIELDLAYER_CHANNELMIX_SOURCE_COLOR_B; 
        FIELDLAYER_CHANNELMIX_SOURCE_COLOR_ALPHA; 
        -1; 
        FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION; 
        FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION_X; 
        FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION_Y; 
        FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION_Z; 
        -1; 
        FIELDLAYER_CHANNELMIX_SOURCE_SOLID; 
    }
}
            

Header File Code (FLChannelMix.h)

#ifndef FLCHANNELMIX_H__
#define FLCHANNELMIX_H__
enum
{
  FIELDLAYER_CHANNELMIX_VALUE = 1000,  //First ID should start at 1000
    FIELDLAYER_CHANNELMIX_SOURCE_VALUE = 1,
    -1 = 2,
    FIELDLAYER_CHANNELMIX_SOURCE_COLOR = 3,
    FIELDLAYER_CHANNELMIX_SOURCE_COLOR_R = 4,
    FIELDLAYER_CHANNELMIX_SOURCE_COLOR_G = 5,
    FIELDLAYER_CHANNELMIX_SOURCE_COLOR_B = 6,
    FIELDLAYER_CHANNELMIX_SOURCE_COLOR_ALPHA = 7,
    -1 = 8,
    FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION = 9,
    FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION_X = 10,
    FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION_Y = 11,
    FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION_Z = 12,
    -1 = 13,
    FIELDLAYER_CHANNELMIX_SOURCE_SOLID = 14,
};
#endif	// FLCHANNELMIX_H__

String File Code (FLChannelMix.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  FIELDLAYER_CHANNELMIX_VALUE    "Value";
    FIELDLAYER_CHANNELMIX_SOURCE_VALUE    "Value";
    -1    "";
    FIELDLAYER_CHANNELMIX_SOURCE_COLOR    "Color";
    FIELDLAYER_CHANNELMIX_SOURCE_COLOR_R    "Red";
    FIELDLAYER_CHANNELMIX_SOURCE_COLOR_G    "Green";
    FIELDLAYER_CHANNELMIX_SOURCE_COLOR_B    "Blue";
    FIELDLAYER_CHANNELMIX_SOURCE_COLOR_ALPHA    "Alpha";
    -1    "";
    FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION    "Direction";
    FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION_X    "DirectionX";
    FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION_Y    "DirectionY";
    FIELDLAYER_CHANNELMIX_SOURCE_DIRECTION_Z    "DirectionZ";
    -1    "";
    FIELDLAYER_CHANNELMIX_SOURCE_SOLID    "Solid";
}