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_TILES_PATTERN in XSLATiles

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

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

Resource File Code (XSLATiles.res)


LONG  SLA_TILES_PATTERN
{
                        
    CYCLE 
    {         SLA_TILES_PATTERN_BRICK1; 
        SLA_TILES_PATTERN_BRICK2; 
        SLA_TILES_PATTERN_CIRCLES1; 
        SLA_TILES_PATTERN_CIRCLES2; 
        SLA_TILES_PATTERN_CIRCLES3; 
        SLA_TILES_PATTERN_HEXAGONS; 
        SLA_TILES_PATTERN_LINES1; 
        SLA_TILES_PATTERN_LINES2; 
        SLA_TILES_PATTERN_PARQUET; 
        SLA_TILES_PATTERN_PLANKS; 
        SLA_TILES_PATTERN_RADIAL_LINES1; 
        SLA_TILES_PATTERN_RADIAL_LINES2; 
        SLA_TILES_PATTERN_RANDOM; 
        SLA_TILES_PATTERN_RINGS1; 
        SLA_TILES_PATTERN_RINGS2; 
        SLA_TILES_PATTERN_SAWTOOTH1; 
        SLA_TILES_PATTERN_SAWTOOTH2; 
        SLA_TILES_PATTERN_SCALES1; 
        SLA_TILES_PATTERN_SCALES2; 
        SLA_TILES_PATTERN_SPIRAL1; 
        SLA_TILES_PATTERN_SPIRAL2; 
        SLA_TILES_PATTERN_SQUARES; 
        SLA_TILES_PATTERN_TRIANGLES1; 
        SLA_TILES_PATTERN_TRIANGLES2; 
        SLA_TILES_PATTERN_TRIANGLES3; 
        SLA_TILES_PATTERN_WAVES1; 
        SLA_TILES_PATTERN_WAVES2; 
        SLA_TILES_PATTERN_WEAVE; 
    }
}
            

Header File Code (XSLATiles.h)

#ifndef XSLATILES_H__
#define XSLATILES_H__
enum
{
  SLA_TILES_PATTERN = 1000,  //First ID should start at 1000
    SLA_TILES_PATTERN_BRICK1 = 1,
    SLA_TILES_PATTERN_BRICK2 = 2,
    SLA_TILES_PATTERN_CIRCLES1 = 3,
    SLA_TILES_PATTERN_CIRCLES2 = 4,
    SLA_TILES_PATTERN_CIRCLES3 = 5,
    SLA_TILES_PATTERN_HEXAGONS = 6,
    SLA_TILES_PATTERN_LINES1 = 7,
    SLA_TILES_PATTERN_LINES2 = 8,
    SLA_TILES_PATTERN_PARQUET = 9,
    SLA_TILES_PATTERN_PLANKS = 10,
    SLA_TILES_PATTERN_RADIAL_LINES1 = 11,
    SLA_TILES_PATTERN_RADIAL_LINES2 = 12,
    SLA_TILES_PATTERN_RANDOM = 13,
    SLA_TILES_PATTERN_RINGS1 = 14,
    SLA_TILES_PATTERN_RINGS2 = 15,
    SLA_TILES_PATTERN_SAWTOOTH1 = 16,
    SLA_TILES_PATTERN_SAWTOOTH2 = 17,
    SLA_TILES_PATTERN_SCALES1 = 18,
    SLA_TILES_PATTERN_SCALES2 = 19,
    SLA_TILES_PATTERN_SPIRAL1 = 20,
    SLA_TILES_PATTERN_SPIRAL2 = 21,
    SLA_TILES_PATTERN_SQUARES = 22,
    SLA_TILES_PATTERN_TRIANGLES1 = 23,
    SLA_TILES_PATTERN_TRIANGLES2 = 24,
    SLA_TILES_PATTERN_TRIANGLES3 = 25,
    SLA_TILES_PATTERN_WAVES1 = 26,
    SLA_TILES_PATTERN_WAVES2 = 27,
    SLA_TILES_PATTERN_WEAVE = 28,
};
#endif	// XSLATILES_H__

String File Code (XSLATiles.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  SLA_TILES_PATTERN    "Pattern";
    SLA_TILES_PATTERN_BRICK1    "Brick1";
    SLA_TILES_PATTERN_BRICK2    "Brick2";
    SLA_TILES_PATTERN_CIRCLES1    "Circles1";
    SLA_TILES_PATTERN_CIRCLES2    "Circles2";
    SLA_TILES_PATTERN_CIRCLES3    "Circles3";
    SLA_TILES_PATTERN_HEXAGONS    "Hexagons";
    SLA_TILES_PATTERN_LINES1    "Lines1";
    SLA_TILES_PATTERN_LINES2    "Lines2";
    SLA_TILES_PATTERN_PARQUET    "Parquet";
    SLA_TILES_PATTERN_PLANKS    "Planks";
    SLA_TILES_PATTERN_RADIAL_LINES1    "RadialLines1";
    SLA_TILES_PATTERN_RADIAL_LINES2    "RadialLines2";
    SLA_TILES_PATTERN_RANDOM    "Random";
    SLA_TILES_PATTERN_RINGS1    "Rings1";
    SLA_TILES_PATTERN_RINGS2    "Rings2";
    SLA_TILES_PATTERN_SAWTOOTH1    "Sawtooth1";
    SLA_TILES_PATTERN_SAWTOOTH2    "Sawtooth2";
    SLA_TILES_PATTERN_SCALES1    "Scales1";
    SLA_TILES_PATTERN_SCALES2    "Scales2";
    SLA_TILES_PATTERN_SPIRAL1    "Spiral1";
    SLA_TILES_PATTERN_SPIRAL2    "Spiral2";
    SLA_TILES_PATTERN_SQUARES    "Squares";
    SLA_TILES_PATTERN_TRIANGLES1    "Triangles1";
    SLA_TILES_PATTERN_TRIANGLES2    "Triangles2";
    SLA_TILES_PATTERN_TRIANGLES3    "Triangles3";
    SLA_TILES_PATTERN_WAVES1    "Waves1";
    SLA_TILES_PATTERN_WAVES2    "Waves2";
    SLA_TILES_PATTERN_WEAVE    "Weave";
}