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 MATERIAL_PREVIEWSIZE
Element Information
Sample Code
Example code for the id MATERIAL_PREVIEWSIZE in Mmaterial
Note that this is not the actual code from the Mmaterial file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Mmaterial.res)
LONG MATERIAL_PREVIEWSIZE { CYCLE { MATERIAL_PREVIEWSIZE_DEF; MATERIAL_PREVIEWSIZE_NO_SCALE; MATERIAL_PREVIEWSIZE_64; MATERIAL_PREVIEWSIZE_128; MATERIAL_PREVIEWSIZE_256; MATERIAL_PREVIEWSIZE_512; MATERIAL_PREVIEWSIZE_1024; MATERIAL_PREVIEWSIZE_2048; MATERIAL_PREVIEWSIZE_4096; MATERIAL_PREVIEWSIZE_8192; MATERIAL_PREVIEWSIZE_16384; } }
Header File Code (Mmaterial.h)
#ifndef MMATERIAL_H__ #define MMATERIAL_H__ enum { MATERIAL_PREVIEWSIZE = 1000, //First ID should start at 1000 MATERIAL_PREVIEWSIZE_DEF = 1, MATERIAL_PREVIEWSIZE_NO_SCALE = 2, MATERIAL_PREVIEWSIZE_64 = 3, MATERIAL_PREVIEWSIZE_128 = 4, MATERIAL_PREVIEWSIZE_256 = 5, MATERIAL_PREVIEWSIZE_512 = 6, MATERIAL_PREVIEWSIZE_1024 = 7, MATERIAL_PREVIEWSIZE_2048 = 8, MATERIAL_PREVIEWSIZE_4096 = 9, MATERIAL_PREVIEWSIZE_8192 = 10, MATERIAL_PREVIEWSIZE_16384 = 11, }; #endif // MMATERIAL_H__
String File Code (Mmaterial.str)
// C4D-StringResource // Identifier Text STRINGTABLE { MATERIAL_PREVIEWSIZE "TexturePreviewSize"; MATERIAL_PREVIEWSIZE_DEF "Default"; MATERIAL_PREVIEWSIZE_NO_SCALE "NoScaling"; MATERIAL_PREVIEWSIZE_64 "64x64(16KB)"; MATERIAL_PREVIEWSIZE_128 "128x128(64KB)"; MATERIAL_PREVIEWSIZE_256 "256x256(256KB)"; MATERIAL_PREVIEWSIZE_512 "512x512(1MB)"; MATERIAL_PREVIEWSIZE_1024 "1024x1024(4MB)"; MATERIAL_PREVIEWSIZE_2048 "2048x2048(16MB)"; MATERIAL_PREVIEWSIZE_4096 "4096x4096(64MB)"; MATERIAL_PREVIEWSIZE_8192 "8192x8192(256MB)"; MATERIAL_PREVIEWSIZE_16384 "16384x16384(1024MB)"; }