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 ID_XVOLGAS_SMOKE_ILLUM in Mxpgas

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

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

Resource File Code (Mxpgas.res)


LONG  ID_XVOLGAS_SMOKE_ILLUM
{
                        
    CYCLE 
    {         ID_XVOLGAS_SMOKE_ILLUM_ISO; 
        ID_XVOLGAS_SMOKE_ILLUM_HG; 
        ID_XVOLGAS_SMOKE_ILLUM_DBLHG; 
        ID_XVOLGAS_SMOKE_ILLUM_SCH; 
        ID_XVOLGAS_SMOKE_ILLUM_RAYL; 
    }
}
            

Header File Code (Mxpgas.h)

#ifndef MXPGAS_H__
#define MXPGAS_H__
enum
{
  ID_XVOLGAS_SMOKE_ILLUM = 1000,  //First ID should start at 1000
    ID_XVOLGAS_SMOKE_ILLUM_ISO = 1,
    ID_XVOLGAS_SMOKE_ILLUM_HG = 2,
    ID_XVOLGAS_SMOKE_ILLUM_DBLHG = 3,
    ID_XVOLGAS_SMOKE_ILLUM_SCH = 4,
    ID_XVOLGAS_SMOKE_ILLUM_RAYL = 5,
};
#endif	// MXPGAS_H__

String File Code (Mxpgas.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  ID_XVOLGAS_SMOKE_ILLUM    "Illumination";
    ID_XVOLGAS_SMOKE_ILLUM_ISO    "Isotropic";
    ID_XVOLGAS_SMOKE_ILLUM_HG    "Henyey-Greenstein";
    ID_XVOLGAS_SMOKE_ILLUM_DBLHG    "DoubleHenyey-Greenstein";
    ID_XVOLGAS_SMOKE_ILLUM_SCH    "Schlick";
    ID_XVOLGAS_SMOKE_ILLUM_RAYL    "Rayleigh";
}