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 SKY_MATERIAL_PREVIEWSIZE
Element Information
Sample Code
Example code for the id SKY_MATERIAL_PREVIEWSIZE in Oskyshader
Note that this is not the actual code from the Oskyshader file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Oskyshader.res)
LONG SKY_MATERIAL_PREVIEWSIZE { CYCLE { SKY_MATERIAL_PREVIEWSIZE_DEF; SKY_MATERIAL_PREVIEWSIZE_64; SKY_MATERIAL_PREVIEWSIZE_128; SKY_MATERIAL_PREVIEWSIZE_256; SKY_MATERIAL_PREVIEWSIZE_512; SKY_MATERIAL_PREVIEWSIZE_1024; SKY_MATERIAL_PREVIEWSIZE_2048; SKY_MATERIAL_PREVIEWSIZE_4096; } }
Header File Code (Oskyshader.h)
#ifndef OSKYSHADER_H__ #define OSKYSHADER_H__ enum { SKY_MATERIAL_PREVIEWSIZE = 1000, //First ID should start at 1000 SKY_MATERIAL_PREVIEWSIZE_DEF = 1, SKY_MATERIAL_PREVIEWSIZE_64 = 2, SKY_MATERIAL_PREVIEWSIZE_128 = 3, SKY_MATERIAL_PREVIEWSIZE_256 = 4, SKY_MATERIAL_PREVIEWSIZE_512 = 5, SKY_MATERIAL_PREVIEWSIZE_1024 = 6, SKY_MATERIAL_PREVIEWSIZE_2048 = 7, SKY_MATERIAL_PREVIEWSIZE_4096 = 8, }; #endif // OSKYSHADER_H__
String File Code (Oskyshader.str)
// C4D-StringResource // Identifier Text STRINGTABLE { SKY_MATERIAL_PREVIEWSIZE "TexturePreviewSize"; SKY_MATERIAL_PREVIEWSIZE_DEF "Default"; SKY_MATERIAL_PREVIEWSIZE_64 "64x64(16KB)"; SKY_MATERIAL_PREVIEWSIZE_128 "128x128(64KB)"; SKY_MATERIAL_PREVIEWSIZE_256 "256x256(256KB)"; SKY_MATERIAL_PREVIEWSIZE_512 "512x512(1MB)"; SKY_MATERIAL_PREVIEWSIZE_1024 "1024x1024(4MB)"; SKY_MATERIAL_PREVIEWSIZE_2048 "2048x2048(16MB)"; SKY_MATERIAL_PREVIEWSIZE_4096 "4096x4096(64MB)"; }