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.
ID TEXTURETAG_CAMERA_PIXELPRESET
Element Information
Sample Code
Example code for the id TEXTURETAG_CAMERA_PIXELPRESET 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_PIXELPRESET { ANIM OFF; CYCLE { TEXTURETAG_CAMERA_PIXELPRESET_CUSTOM; TEXTURETAG_CAMERA_PIXELPRESET_SQUARE; TEXTURETAG_CAMERA_PIXELPRESET_D1DVNTSC; TEXTURETAG_CAMERA_PIXELPRESET_D1DVPAL; TEXTURETAG_CAMERA_PIXELPRESET_D1DVNTSCWIDESCREEN; TEXTURETAG_CAMERA_PIXELPRESET_HDVANAMORPHIC; TEXTURETAG_CAMERA_PIXELPRESET_D1DVPALWIDESCREEN; TEXTURETAG_CAMERA_PIXELPRESET_ANAMORPHIC; } }
Header File Code (Ttexture.h)
#ifndef TTEXTURE_H__ #define TTEXTURE_H__ enum { TEXTURETAG_CAMERA_PIXELPRESET = 1000, //First ID should start at 1000 TEXTURETAG_CAMERA_PIXELPRESET_CUSTOM = 1, TEXTURETAG_CAMERA_PIXELPRESET_SQUARE = 2, TEXTURETAG_CAMERA_PIXELPRESET_D1DVNTSC = 3, TEXTURETAG_CAMERA_PIXELPRESET_D1DVPAL = 4, TEXTURETAG_CAMERA_PIXELPRESET_D1DVNTSCWIDESCREEN = 5, TEXTURETAG_CAMERA_PIXELPRESET_HDVANAMORPHIC = 6, TEXTURETAG_CAMERA_PIXELPRESET_D1DVPALWIDESCREEN = 7, TEXTURETAG_CAMERA_PIXELPRESET_ANAMORPHIC = 8, }; #endif // TTEXTURE_H__
String File Code (Ttexture.str)
// C4D-StringResource // Identifier Text STRINGTABLE { TEXTURETAG_CAMERA_PIXELPRESET ""; TEXTURETAG_CAMERA_PIXELPRESET_CUSTOM "Custom"; TEXTURETAG_CAMERA_PIXELPRESET_SQUARE "Square"; TEXTURETAG_CAMERA_PIXELPRESET_D1DVNTSC "D1/DVNTSC(0.9)"; TEXTURETAG_CAMERA_PIXELPRESET_D1DVPAL "D1/DVPAL(1.067)"; TEXTURETAG_CAMERA_PIXELPRESET_D1DVNTSCWIDESCREEN "D1/DVNTSCWidescreen(1.2)"; TEXTURETAG_CAMERA_PIXELPRESET_HDVANAMORPHIC "HDVAnamorphic(1.333)"; TEXTURETAG_CAMERA_PIXELPRESET_D1DVPALWIDESCREEN "D1/DVPALWidescreen(1.422)"; TEXTURETAG_CAMERA_PIXELPRESET_ANAMORPHIC "Anamorphic2:1(2.0)"; }