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 SDSOBJECT_TYPE
Element Information
Sample Code
Example code for the id SDSOBJECT_TYPE in Osds
Note that this is not the actual code from the Osds file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Osds.res)
LONG SDSOBJECT_TYPE
{
CYCLE
{ SDSOBJECT_TYPE_CM;
SDSOBJECT_TYPE_CM_N;
SDSOBJECT_TYPE_OSD_CATMARK;
SDSOBJECT_TYPE_OSD_LOOP;
SDSOBJECT_TYPE_OSD_BILINEAR;
}
}
Header File Code (Osds.h)
#ifndef OSDS_H__
#define OSDS_H__
enum
{
SDSOBJECT_TYPE = 1000, //First ID should start at 1000
SDSOBJECT_TYPE_CM = 1,
SDSOBJECT_TYPE_CM_N = 2,
SDSOBJECT_TYPE_OSD_CATMARK = 3,
SDSOBJECT_TYPE_OSD_LOOP = 4,
SDSOBJECT_TYPE_OSD_BILINEAR = 5,
};
#endif // OSDS_H__
String File Code (Osds.str)
// C4D-StringResource
// Identifier Text
STRINGTABLE
{
SDSOBJECT_TYPE "Type";
SDSOBJECT_TYPE_CM "Catmull-Clark";
SDSOBJECT_TYPE_CM_N "Catmull-Clark(N-Gons)";
SDSOBJECT_TYPE_OSD_CATMARK "OpenSubdivCatmull-Clark";
SDSOBJECT_TYPE_OSD_LOOP "OpenSubdivLoop";
SDSOBJECT_TYPE_OSD_BILINEAR "OpenSubdivBilinear";
}