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 PRIM_4SIDE_TYPE
Element Information
Sample Code
Example code for the id PRIM_4SIDE_TYPE in Ospline4side
Note that this is not the actual code from the Ospline4side file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Ospline4side.res)
LONG PRIM_4SIDE_TYPE { CYCLE { PRIM_4SIDE_TYPE_DIAMOND; PRIM_4SIDE_TYPE_KITE; PRIM_4SIDE_TYPE_PARALLELOGRAM; PRIM_4SIDE_TYPE_TRAPEZIUM; } }
Header File Code (Ospline4side.h)
#ifndef OSPLINE4SIDE_H__ #define OSPLINE4SIDE_H__ enum { PRIM_4SIDE_TYPE = 1000, //First ID should start at 1000 PRIM_4SIDE_TYPE_DIAMOND = 1, PRIM_4SIDE_TYPE_KITE = 2, PRIM_4SIDE_TYPE_PARALLELOGRAM = 3, PRIM_4SIDE_TYPE_TRAPEZIUM = 4, }; #endif // OSPLINE4SIDE_H__
String File Code (Ospline4side.str)
// C4D-StringResource // Identifier Text STRINGTABLE { PRIM_4SIDE_TYPE "Type"; PRIM_4SIDE_TYPE_DIAMOND "Diamond"; PRIM_4SIDE_TYPE_KITE "Kite"; PRIM_4SIDE_TYPE_PARALLELOGRAM "Parallelogram"; PRIM_4SIDE_TYPE_TRAPEZIUM "Trapezium"; }