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 LOD_CRITERIA
Element Information
Sample Code
Example code for the id LOD_CRITERIA in Olod
Note that this is not the actual code from the Olod file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Olod.res)
LONG LOD_CRITERIA { CYCLE { LOD_CRITERIA_MANUAL; LOD_CRITERIA_MANUAL_SLIDER; LOD_CRITERIA_SCREEN_H; LOD_CRITERIA_SCREEN_V; LOD_CRITERIA_SCREEN_SURFACE; LOD_CRITERIA_CAMERA_DIST; LOD_CRITERIA_GLOBAL; } }
Header File Code (Olod.h)
#ifndef OLOD_H__ #define OLOD_H__ enum { LOD_CRITERIA = 1000, //First ID should start at 1000 LOD_CRITERIA_MANUAL = 1, LOD_CRITERIA_MANUAL_SLIDER = 2, LOD_CRITERIA_SCREEN_H = 3, LOD_CRITERIA_SCREEN_V = 4, LOD_CRITERIA_SCREEN_SURFACE = 5, LOD_CRITERIA_CAMERA_DIST = 6, LOD_CRITERIA_GLOBAL = 7, }; #endif // OLOD_H__
String File Code (Olod.str)
// C4D-StringResource // Identifier Text STRINGTABLE { LOD_CRITERIA "Criteria"; LOD_CRITERIA_MANUAL "UserLODLevel"; LOD_CRITERIA_MANUAL_SLIDER "UserLODValue"; LOD_CRITERIA_SCREEN_H "ScreenSizeH"; LOD_CRITERIA_SCREEN_V "ScreenSizeV"; LOD_CRITERIA_SCREEN_SURFACE "ScreenSurface"; LOD_CRITERIA_CAMERA_DIST "CameraDistance"; LOD_CRITERIA_GLOBAL "Global"; }