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_CAMERA_FILMPRESET 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_CAMERA_FILMPRESET
{
ANIM  OFF;                          
    CYCLE 
    {         TEXTURETAG_CAMERA_FILMPRESET_CUSTOM; 
        TEXTURETAG_CAMERA_FILMPRESET_SQUARE; 
        TEXTURETAG_CAMERA_FILMPRESET_STANDARD; 
        TEXTURETAG_CAMERA_FILMPRESET_HDTV; 
        TEXTURETAG_CAMERA_FILMPRESET_35MMSTILL; 
        TEXTURETAG_CAMERA_FILMPRESET_WIDESCREEN; 
        TEXTURETAG_CAMERA_FILMPRESET_35MM; 
        TEXTURETAG_CAMERA_FILMPRESET_PANAVISION; 
    }
}
            

Header File Code (Ttexture.h)

#ifndef TTEXTURE_H__
#define TTEXTURE_H__
enum
{
  TEXTURETAG_CAMERA_FILMPRESET = 1000,  //First ID should start at 1000
    TEXTURETAG_CAMERA_FILMPRESET_CUSTOM = 1,
    TEXTURETAG_CAMERA_FILMPRESET_SQUARE = 2,
    TEXTURETAG_CAMERA_FILMPRESET_STANDARD = 3,
    TEXTURETAG_CAMERA_FILMPRESET_HDTV = 4,
    TEXTURETAG_CAMERA_FILMPRESET_35MMSTILL = 5,
    TEXTURETAG_CAMERA_FILMPRESET_WIDESCREEN = 6,
    TEXTURETAG_CAMERA_FILMPRESET_35MM = 7,
    TEXTURETAG_CAMERA_FILMPRESET_PANAVISION = 8,
};
#endif	// TTEXTURE_H__

String File Code (Ttexture.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  TEXTURETAG_CAMERA_FILMPRESET    "";
    TEXTURETAG_CAMERA_FILMPRESET_CUSTOM    "Custom";
    TEXTURETAG_CAMERA_FILMPRESET_SQUARE    "Square(1:1)";
    TEXTURETAG_CAMERA_FILMPRESET_STANDARD    "Standard(4:3)";
    TEXTURETAG_CAMERA_FILMPRESET_HDTV    "HDTV(16:9)";
    TEXTURETAG_CAMERA_FILMPRESET_35MMSTILL    "35mmStill(3:2)";
    TEXTURETAG_CAMERA_FILMPRESET_WIDESCREEN    "Widescreen(14:9)";
    TEXTURETAG_CAMERA_FILMPRESET_35MM    "35mm(1.85:1)";
    TEXTURETAG_CAMERA_FILMPRESET_PANAVISION    "Panavision(2.39:1)";
}