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 SLA_BANJ_ALGORITHM in XSLABanj

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

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

Resource File Code (XSLABanj.res)


LONG  SLA_BANJ_ALGORITHM
{
                        
    CYCLE 
    {         SLA_BANJ_ALGORITHM_INTERNAL; 
        SLA_BANJ_ALGORITHM_OREN_NAYAR; 
        SLA_BANJ_ALGORITHM_SIMPLE; 
    }
}
            

Header File Code (XSLABanj.h)

#ifndef XSLABANJ_H__
#define XSLABANJ_H__
enum
{
  SLA_BANJ_ALGORITHM = 1000,  //First ID should start at 1000
    SLA_BANJ_ALGORITHM_INTERNAL = 1,
    SLA_BANJ_ALGORITHM_OREN_NAYAR = 2,
    SLA_BANJ_ALGORITHM_SIMPLE = 3,
};
#endif	// XSLABANJ_H__

String File Code (XSLABanj.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  SLA_BANJ_ALGORITHM    "Algorithm";
    SLA_BANJ_ALGORITHM_INTERNAL    "Internal";
    SLA_BANJ_ALGORITHM_OREN_NAYAR    "OrenNayar";
    SLA_BANJ_ALGORITHM_SIMPLE    "Simple";
}