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 MG_POLY_UPVECTOR
Element Information
Sample Code
Example code for the id MG_POLY_UPVECTOR in MGpoly
Note that this is not the actual code from the MGpoly file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (MGpoly.res)
LONG MG_POLY_UPVECTOR { CYCLE { MG_POLY_UPVECTOR_NONE; MG_POLY_UPVECTOR_XP; MG_POLY_UPVECTOR_XN; MG_POLY_UPVECTOR_YP; MG_POLY_UPVECTOR_YN; MG_POLY_UPVECTOR_ZP; MG_POLY_UPVECTOR_ZN; } }
Header File Code (MGpoly.h)
#ifndef MGPOLY_H__ #define MGPOLY_H__ enum { MG_POLY_UPVECTOR = 1000, //First ID should start at 1000 MG_POLY_UPVECTOR_NONE = 1, MG_POLY_UPVECTOR_XP = 2, MG_POLY_UPVECTOR_XN = 3, MG_POLY_UPVECTOR_YP = 4, MG_POLY_UPVECTOR_YN = 5, MG_POLY_UPVECTOR_ZP = 6, MG_POLY_UPVECTOR_ZN = 7, }; #endif // MGPOLY_H__
String File Code (MGpoly.str)
// C4D-StringResource // Identifier Text STRINGTABLE { MG_POLY_UPVECTOR "UpVector"; MG_POLY_UPVECTOR_NONE "None"; MG_POLY_UPVECTOR_XP "X+"; MG_POLY_UPVECTOR_XN "X-"; MG_POLY_UPVECTOR_YP "Y+"; MG_POLY_UPVECTOR_YN "Y-"; MG_POLY_UPVECTOR_ZP "Z+"; MG_POLY_UPVECTOR_ZN "Z-"; }