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 BITMAPSHADER_INTERPOLATION in Xbitmap

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

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

Resource File Code (Xbitmap.res)


LONG  BITMAPSHADER_INTERPOLATION
{
                        
    CYCLE 
    {         BITMAPSHADER_INTERPOLATION_NONE; 
        BITMAPSHADER_INTERPOLATION_CIRCLE; 
        BITMAPSHADER_INTERPOLATION_SQUARE; 
        BITMAPSHADER_INTERPOLATION_ALIAS1; 
        BITMAPSHADER_INTERPOLATION_ALIAS2; 
        BITMAPSHADER_INTERPOLATION_ALIAS3; 
        BITMAPSHADER_INTERPOLATION_MIP; 
        BITMAPSHADER_INTERPOLATION_SAT; 
    }
}
            

Header File Code (Xbitmap.h)

#ifndef XBITMAP_H__
#define XBITMAP_H__
enum
{
  BITMAPSHADER_INTERPOLATION = 1000,  //First ID should start at 1000
    BITMAPSHADER_INTERPOLATION_NONE = 1,
    BITMAPSHADER_INTERPOLATION_CIRCLE = 2,
    BITMAPSHADER_INTERPOLATION_SQUARE = 3,
    BITMAPSHADER_INTERPOLATION_ALIAS1 = 4,
    BITMAPSHADER_INTERPOLATION_ALIAS2 = 5,
    BITMAPSHADER_INTERPOLATION_ALIAS3 = 6,
    BITMAPSHADER_INTERPOLATION_MIP = 7,
    BITMAPSHADER_INTERPOLATION_SAT = 8,
};
#endif	// XBITMAP_H__

String File Code (Xbitmap.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  BITMAPSHADER_INTERPOLATION    "Sampling";
    BITMAPSHADER_INTERPOLATION_NONE    "None";
    BITMAPSHADER_INTERPOLATION_CIRCLE    "Circle";
    BITMAPSHADER_INTERPOLATION_SQUARE    "Square";
    BITMAPSHADER_INTERPOLATION_ALIAS1    "Alias1";
    BITMAPSHADER_INTERPOLATION_ALIAS2    "Alias2";
    BITMAPSHADER_INTERPOLATION_ALIAS3    "Alias3";
    BITMAPSHADER_INTERPOLATION_MIP    "MIP";
    BITMAPSHADER_INTERPOLATION_SAT    "SAT";
}