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 XVOL_ILLUM_TYPE in Mxpvolume

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

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

Resource File Code (Mxpvolume.res)


LONG  XVOL_ILLUM_TYPE
{
                        
    CYCLE 
    {         XVOL_ILLUM_TYPE_DIFFUSE; 
        XVOL_ILLUM_TYPE_PHONG; 
        XVOL_ILLUM_TYPE_FLAT; 
        XVOL_ILLUM_TYPE_FUZZY; 
        XVOL_ILLUM_TYPE_NEON; 
        XVOL_ILLUM_TYPE_HG; 
        XVOL_ILLUM_TYPE_SCH; 
        XVOL_ILLUM_TYPE_RAYL; 
    }
}
            

Header File Code (Mxpvolume.h)

#ifndef MXPVOLUME_H__
#define MXPVOLUME_H__
enum
{
  XVOL_ILLUM_TYPE = 1000,  //First ID should start at 1000
    XVOL_ILLUM_TYPE_DIFFUSE = 1,
    XVOL_ILLUM_TYPE_PHONG = 2,
    XVOL_ILLUM_TYPE_FLAT = 3,
    XVOL_ILLUM_TYPE_FUZZY = 4,
    XVOL_ILLUM_TYPE_NEON = 5,
    XVOL_ILLUM_TYPE_HG = 6,
    XVOL_ILLUM_TYPE_SCH = 7,
    XVOL_ILLUM_TYPE_RAYL = 8,
};
#endif	// MXPVOLUME_H__

String File Code (Mxpvolume.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XVOL_ILLUM_TYPE    "Mode";
    XVOL_ILLUM_TYPE_DIFFUSE    "Diffuse";
    XVOL_ILLUM_TYPE_PHONG    "Phong";
    XVOL_ILLUM_TYPE_FLAT    "Flat";
    XVOL_ILLUM_TYPE_FUZZY    "Fuzzy";
    XVOL_ILLUM_TYPE_NEON    "Neon";
    XVOL_ILLUM_TYPE_HG    "Henyey-Greenstein";
    XVOL_ILLUM_TYPE_SCH    "Schlick";
    XVOL_ILLUM_TYPE_RAYL    "Rayleigh";
}