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 MDATA_MAKESELECT_STATE
Element Information
Sample Code
Example code for the id MDATA_MAKESELECT_STATE in ToolMakeSelect
Note that this is not the actual code from the ToolMakeSelect file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (ToolMakeSelect.res)
LONG MDATA_MAKESELECT_STATE { ALIGN_LEFT ; CYCLE { MDATA_MAKESELECT_STATE_ANY; MDATA_MAKESELECT_STATE_PLANAR; MDATA_MAKESELECT_STATE_NONDEGENERATE; MDATA_MAKESELECT_STATE_NONPLANAR; MDATA_MAKESELECT_STATE_DEGENERATE; } }
Header File Code (ToolMakeSelect.h)
#ifndef TOOLMAKESELECT_H__ #define TOOLMAKESELECT_H__ enum { MDATA_MAKESELECT_STATE = 1000, //First ID should start at 1000 MDATA_MAKESELECT_STATE_ANY = 1, MDATA_MAKESELECT_STATE_PLANAR = 2, MDATA_MAKESELECT_STATE_NONDEGENERATE = 3, MDATA_MAKESELECT_STATE_NONPLANAR = 4, MDATA_MAKESELECT_STATE_DEGENERATE = 5, }; #endif // TOOLMAKESELECT_H__
String File Code (ToolMakeSelect.str)
// C4D-StringResource // Identifier Text STRINGTABLE { MDATA_MAKESELECT_STATE "State"; MDATA_MAKESELECT_STATE_ANY "Any"; MDATA_MAKESELECT_STATE_PLANAR "Planar"; MDATA_MAKESELECT_STATE_NONDEGENERATE "Non-Degenerate"; MDATA_MAKESELECT_STATE_NONPLANAR "Non-planar"; MDATA_MAKESELECT_STATE_DEGENERATE "Degenerate"; }