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_CTYPE
Element Information
Sample Code
Example code for the id UD_CTYPE 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_CTYPE { INPORT ; EDITPORT ; CYCLE { UD_CTYPE_FRONT; UD_CTYPE_BACK; UD_CTYPE_TWO; } }
Header File Code (OP_Deflector.h)
#ifndef OP_DEFLECTOR_H__ #define OP_DEFLECTOR_H__ enum { UD_CTYPE = 1000, //First ID should start at 1000 UD_CTYPE_FRONT = 1, UD_CTYPE_BACK = 2, UD_CTYPE_TWO = 3, }; #endif // OP_DEFLECTOR_H__
String File Code (OP_Deflector.str)
// C4D-StringResource // Identifier Text STRINGTABLE { UD_CTYPE "CollisionType"; UD_CTYPE_FRONT "Front"; UD_CTYPE_BACK "Back"; UD_CTYPE_TWO "TwoSide"; }