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 ID_CKEY_PRESET
Element Information
Sample Code
Example code for the id ID_CKEY_PRESET in CKvalue
Note that this is not the actual code from the CKvalue file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (CKvalue.res)
LONG ID_CKEY_PRESET { ALIGN_LEFT ; ANIM OFF; PARENTCOLLAPSE ; CYCLE { ID_CKEY_PRESET_AUTO_CLAMP; ID_CKEY_PRESET_AUTO_OVERSHOOT; ID_CKEY_PRESET_AUTO_OVERSHOOTWEIGHTED; ID_CKEY_PRESET_FIXED_OVERSHOOTWEIGHTED; ID_CKEY_PRESET_CUSTOM; } }
Header File Code (CKvalue.h)
#ifndef CKVALUE_H__ #define CKVALUE_H__ enum { ID_CKEY_PRESET = 1000, //First ID should start at 1000 ID_CKEY_PRESET_AUTO_CLAMP = 1, ID_CKEY_PRESET_AUTO_OVERSHOOT = 2, ID_CKEY_PRESET_AUTO_OVERSHOOTWEIGHTED = 3, ID_CKEY_PRESET_FIXED_OVERSHOOTWEIGHTED = 4, ID_CKEY_PRESET_CUSTOM = 5, }; #endif // CKVALUE_H__
String File Code (CKvalue.str)
// C4D-StringResource // Identifier Text STRINGTABLE { ID_CKEY_PRESET "TangentPreset"; ID_CKEY_PRESET_AUTO_CLAMP "AutoClamped"; ID_CKEY_PRESET_AUTO_OVERSHOOT "AutoNoOvershoot"; ID_CKEY_PRESET_AUTO_OVERSHOOTWEIGHTED "AutoWeighted"; ID_CKEY_PRESET_FIXED_OVERSHOOTWEIGHTED "FixedWeighted"; ID_CKEY_PRESET_CUSTOM "Custom"; }