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 NULLOBJECT_DISPLAY
Element Information
Sample Code
Example code for the id NULLOBJECT_DISPLAY in Onull
Note that this is not the actual code from the Onull file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Onull.res)
LONG NULLOBJECT_DISPLAY { CYCLE { NULLOBJECT_DISPLAY_NONE; NULLOBJECT_DISPLAY_DOT; NULLOBJECT_DISPLAY_POINT; NULLOBJECT_DISPLAY_CIRCLE; NULLOBJECT_DISPLAY_RECTANGLE; NULLOBJECT_DISPLAY_DIAMOND; NULLOBJECT_DISPLAY_TRIANGLE; NULLOBJECT_DISPLAY_PENTAGON; NULLOBJECT_DISPLAY_HEXAGON; NULLOBJECT_DISPLAY_OCTAGON; NULLOBJECT_DISPLAY_STAR; NULLOBJECT_DISPLAY_AXIS; NULLOBJECT_DISPLAY_CUBE; NULLOBJECT_DISPLAY_PYRAMID; NULLOBJECT_DISPLAY_SPHERE; } }
Header File Code (Onull.h)
#ifndef ONULL_H__ #define ONULL_H__ enum { NULLOBJECT_DISPLAY = 1000, //First ID should start at 1000 NULLOBJECT_DISPLAY_NONE = 1, NULLOBJECT_DISPLAY_DOT = 2, NULLOBJECT_DISPLAY_POINT = 3, NULLOBJECT_DISPLAY_CIRCLE = 4, NULLOBJECT_DISPLAY_RECTANGLE = 5, NULLOBJECT_DISPLAY_DIAMOND = 6, NULLOBJECT_DISPLAY_TRIANGLE = 7, NULLOBJECT_DISPLAY_PENTAGON = 8, NULLOBJECT_DISPLAY_HEXAGON = 9, NULLOBJECT_DISPLAY_OCTAGON = 10, NULLOBJECT_DISPLAY_STAR = 11, NULLOBJECT_DISPLAY_AXIS = 12, NULLOBJECT_DISPLAY_CUBE = 13, NULLOBJECT_DISPLAY_PYRAMID = 14, NULLOBJECT_DISPLAY_SPHERE = 15, }; #endif // ONULL_H__
String File Code (Onull.str)
// C4D-StringResource // Identifier Text STRINGTABLE { NULLOBJECT_DISPLAY "Shape"; NULLOBJECT_DISPLAY_NONE "None"; NULLOBJECT_DISPLAY_DOT "Dot"; NULLOBJECT_DISPLAY_POINT "Locator"; NULLOBJECT_DISPLAY_CIRCLE "Circle"; NULLOBJECT_DISPLAY_RECTANGLE "Rectangle"; NULLOBJECT_DISPLAY_DIAMOND "Diamond"; NULLOBJECT_DISPLAY_TRIANGLE "Triangle"; NULLOBJECT_DISPLAY_PENTAGON "Pentagon"; NULLOBJECT_DISPLAY_HEXAGON "Hexagon"; NULLOBJECT_DISPLAY_OCTAGON "Octagon"; NULLOBJECT_DISPLAY_STAR "Star"; NULLOBJECT_DISPLAY_AXIS "Axis"; NULLOBJECT_DISPLAY_CUBE "Cube"; NULLOBJECT_DISPLAY_PYRAMID "Pyramid"; NULLOBJECT_DISPLAY_SPHERE "Sphere"; }