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 TEXTURETAG_PROJECTION in Ttexture

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

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

Resource File Code (Ttexture.res)


LONG  TEXTURETAG_PROJECTION
{
FIT_H  ;                          
    CYCLE 
    {         TEXTURETAG_PROJECTION_SPHERICAL; 
        TEXTURETAG_PROJECTION_CYLINDRICAL; 
        TEXTURETAG_PROJECTION_FLAT; 
        TEXTURETAG_PROJECTION_CUBIC; 
        TEXTURETAG_PROJECTION_FRONTAL; 
        TEXTURETAG_PROJECTION_SPATIAL; 
        TEXTURETAG_PROJECTION_UVW; 
        TEXTURETAG_PROJECTION_SHRINKWRAP; 
        TEXTURETAG_PROJECTION_CAMERAMAP; 
    }
}
            

Header File Code (Ttexture.h)

#ifndef TTEXTURE_H__
#define TTEXTURE_H__
enum
{
  TEXTURETAG_PROJECTION = 1000,  //First ID should start at 1000
    TEXTURETAG_PROJECTION_SPHERICAL = 1,
    TEXTURETAG_PROJECTION_CYLINDRICAL = 2,
    TEXTURETAG_PROJECTION_FLAT = 3,
    TEXTURETAG_PROJECTION_CUBIC = 4,
    TEXTURETAG_PROJECTION_FRONTAL = 5,
    TEXTURETAG_PROJECTION_SPATIAL = 6,
    TEXTURETAG_PROJECTION_UVW = 7,
    TEXTURETAG_PROJECTION_SHRINKWRAP = 8,
    TEXTURETAG_PROJECTION_CAMERAMAP = 9,
};
#endif	// TTEXTURE_H__

String File Code (Ttexture.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  TEXTURETAG_PROJECTION    "Projection";
    TEXTURETAG_PROJECTION_SPHERICAL    "Spherical";
    TEXTURETAG_PROJECTION_CYLINDRICAL    "Cylindrical";
    TEXTURETAG_PROJECTION_FLAT    "Flat";
    TEXTURETAG_PROJECTION_CUBIC    "Cubic";
    TEXTURETAG_PROJECTION_FRONTAL    "Frontal";
    TEXTURETAG_PROJECTION_SPATIAL    "Spatial";
    TEXTURETAG_PROJECTION_UVW    "UVWMapping";
    TEXTURETAG_PROJECTION_SHRINKWRAP    "ShrinkWrapping";
    TEXTURETAG_PROJECTION_CAMERAMAP    "CameraMapping";
}