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 TERRAINSHADER_TYPE
Element Information
Sample Code
Example code for the id TERRAINSHADER_TYPE in Mterrain
Note that this is not the actual code from the Mterrain file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Mterrain.res)
LONG TERRAINSHADER_TYPE { ANIM OFF; CYCLE { TERRAINSHADER_TYPE_CUSTOM; TERRAINSHADER_TYPE_MOUNTAIN; TERRAINSHADER_TYPE_MARS; TERRAINSHADER_TYPE_MOON; TERRAINSHADER_TYPE_DESERT; TERRAINSHADER_TYPE_POLAR; } }
Header File Code (Mterrain.h)
#ifndef MTERRAIN_H__ #define MTERRAIN_H__ enum { TERRAINSHADER_TYPE = 1000, //First ID should start at 1000 TERRAINSHADER_TYPE_CUSTOM = 1, TERRAINSHADER_TYPE_MOUNTAIN = 2, TERRAINSHADER_TYPE_MARS = 3, TERRAINSHADER_TYPE_MOON = 4, TERRAINSHADER_TYPE_DESERT = 5, TERRAINSHADER_TYPE_POLAR = 6, }; #endif // MTERRAIN_H__
String File Code (Mterrain.str)
// C4D-StringResource // Identifier Text STRINGTABLE { TERRAINSHADER_TYPE "Type"; TERRAINSHADER_TYPE_CUSTOM "Custom"; TERRAINSHADER_TYPE_MOUNTAIN "Mountain"; TERRAINSHADER_TYPE_MARS "Mars"; TERRAINSHADER_TYPE_MOON "Moon"; TERRAINSHADER_TYPE_DESERT "Desert"; TERRAINSHADER_TYPE_POLAR "Polar"; }