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_PROJECTOR_PROJECTION in XSLAProjector

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

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

Resource File Code (XSLAProjector.res)


LONG  SLA_PROJECTOR_PROJECTION
{
                        
    CYCLE 
    {         SLA_PROJECTOR_PROJECTION_SPHERICAL; 
        SLA_PROJECTOR_PROJECTION_CYLINDRICAL; 
        SLA_PROJECTOR_PROJECTION_FLAT; 
        SLA_PROJECTOR_PROJECTION_CUBIC; 
        SLA_PROJECTOR_PROJECTION_FRONTAL; 
        SLA_PROJECTOR_PROJECTION_SPATIAL; 
        SLA_PROJECTOR_PROJECTION_UVW; 
        SLA_PROJECTOR_PROJECTION_SHRINKWRAP; 
    }
}
            

Header File Code (XSLAProjector.h)

#ifndef XSLAPROJECTOR_H__
#define XSLAPROJECTOR_H__
enum
{
  SLA_PROJECTOR_PROJECTION = 1000,  //First ID should start at 1000
    SLA_PROJECTOR_PROJECTION_SPHERICAL = 1,
    SLA_PROJECTOR_PROJECTION_CYLINDRICAL = 2,
    SLA_PROJECTOR_PROJECTION_FLAT = 3,
    SLA_PROJECTOR_PROJECTION_CUBIC = 4,
    SLA_PROJECTOR_PROJECTION_FRONTAL = 5,
    SLA_PROJECTOR_PROJECTION_SPATIAL = 6,
    SLA_PROJECTOR_PROJECTION_UVW = 7,
    SLA_PROJECTOR_PROJECTION_SHRINKWRAP = 8,
};
#endif	// XSLAPROJECTOR_H__

String File Code (XSLAProjector.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  SLA_PROJECTOR_PROJECTION    "Projection";
    SLA_PROJECTOR_PROJECTION_SPHERICAL    "Spherical";
    SLA_PROJECTOR_PROJECTION_CYLINDRICAL    "Cylindrical";
    SLA_PROJECTOR_PROJECTION_FLAT    "Flat";
    SLA_PROJECTOR_PROJECTION_CUBIC    "Cubic";
    SLA_PROJECTOR_PROJECTION_FRONTAL    "Frontal";
    SLA_PROJECTOR_PROJECTION_SPATIAL    "Spatial";
    SLA_PROJECTOR_PROJECTION_UVW    "UVWMapping";
    SLA_PROJECTOR_PROJECTION_SHRINKWRAP    "ShrinkWrapping";
}