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 PREF_MM_SIZE
Element Information
Sample Code
Example code for the id PREF_MM_SIZE in Prefsmaterial
Note that this is not the actual code from the Prefsmaterial file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Prefsmaterial.res)
LONG PREF_MM_SIZE { ANIM OFF; CYCLE { PREF_MM_SIZE_SMALL; PREF_MM_SIZE_MED; PREF_MM_SIZE_LARGE; PREF_MM_SIZE_HUGE; } }
Header File Code (Prefsmaterial.h)
#ifndef PREFSMATERIAL_H__ #define PREFSMATERIAL_H__ enum { PREF_MM_SIZE = 1000, //First ID should start at 1000 PREF_MM_SIZE_SMALL = 1, PREF_MM_SIZE_MED = 2, PREF_MM_SIZE_LARGE = 3, PREF_MM_SIZE_HUGE = 4, }; #endif // PREFSMATERIAL_H__
String File Code (Prefsmaterial.str)
// C4D-StringResource // Identifier Text STRINGTABLE { PREF_MM_SIZE "DefaultSize"; PREF_MM_SIZE_SMALL "Small"; PREF_MM_SIZE_MED "Medium"; PREF_MM_SIZE_LARGE "Large"; PREF_MM_SIZE_HUGE "Huge"; }