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_NUKEI_FUSER_PROJECTION in XSLANukei

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

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

Resource File Code (XSLANukei.res)


LONG  SLA_NUKEI_FUSER_PROJECTION
{
                        
    CYCLE 
    {         SLA_NUKEI_TEX_PROJECTION_SPHERICAL; 
        SLA_NUKEI_TEX_PROJECTION_CYLINDRICAL; 
        SLA_NUKEI_TEX_PROJECTION_FLAT; 
        SLA_NUKEI_TEX_PROJECTION_CUBIC; 
        SLA_NUKEI_TEX_PROJECTION_FRONTAL; 
        SLA_NUKEI_TEX_PROJECTION_SPATIAL; 
        SLA_NUKEI_TEX_PROJECTION_UVW; 
        SLA_NUKEI_TEX_PROJECTION_SHRINKWRAP; 
    }
}
            

Header File Code (XSLANukei.h)

#ifndef XSLANUKEI_H__
#define XSLANUKEI_H__
enum
{
  SLA_NUKEI_FUSER_PROJECTION = 1000,  //First ID should start at 1000
    SLA_NUKEI_TEX_PROJECTION_SPHERICAL = 1,
    SLA_NUKEI_TEX_PROJECTION_CYLINDRICAL = 2,
    SLA_NUKEI_TEX_PROJECTION_FLAT = 3,
    SLA_NUKEI_TEX_PROJECTION_CUBIC = 4,
    SLA_NUKEI_TEX_PROJECTION_FRONTAL = 5,
    SLA_NUKEI_TEX_PROJECTION_SPATIAL = 6,
    SLA_NUKEI_TEX_PROJECTION_UVW = 7,
    SLA_NUKEI_TEX_PROJECTION_SHRINKWRAP = 8,
};
#endif	// XSLANUKEI_H__

String File Code (XSLANukei.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  SLA_NUKEI_FUSER_PROJECTION    "Projection";
    SLA_NUKEI_TEX_PROJECTION_SPHERICAL    "Spherical";
    SLA_NUKEI_TEX_PROJECTION_CYLINDRICAL    "Cylindrical";
    SLA_NUKEI_TEX_PROJECTION_FLAT    "Flat";
    SLA_NUKEI_TEX_PROJECTION_CUBIC    "Cubic";
    SLA_NUKEI_TEX_PROJECTION_FRONTAL    "Frontal";
    SLA_NUKEI_TEX_PROJECTION_SPATIAL    "Spatial";
    SLA_NUKEI_TEX_PROJECTION_UVW    "UVW";
    SLA_NUKEI_TEX_PROJECTION_SHRINKWRAP    "Shrink-Wrap";
}