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 UD_DTYPE
Element Information
Sample Code
Example code for the id UD_DTYPE in OP_Deflector
Note that this is not the actual code from the OP_Deflector file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (OP_Deflector.res)
LONG UD_DTYPE { INPORT ; EDITPORT ; CYCLE { UD_DTYPE_BOX; UD_DTYPE_SPHERE; UD_DTYPE_OBJECT; UD_DTYPE_GEOM; } }
Header File Code (OP_Deflector.h)
#ifndef OP_DEFLECTOR_H__ #define OP_DEFLECTOR_H__ enum { UD_DTYPE = 1000, //First ID should start at 1000 UD_DTYPE_BOX = 1, UD_DTYPE_SPHERE = 2, UD_DTYPE_OBJECT = 3, UD_DTYPE_GEOM = 4, }; #endif // OP_DEFLECTOR_H__
String File Code (OP_Deflector.str)
// C4D-StringResource // Identifier Text STRINGTABLE { UD_DTYPE "DeflectorType"; UD_DTYPE_BOX "Box"; UD_DTYPE_SPHERE "Sphere"; UD_DTYPE_OBJECT "Object"; UD_DTYPE_GEOM "Geometry"; }