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 XMBSUBSURFACESHADER_GPURENDER_PRESET
Element Information
Sample Code
Example code for the id XMBSUBSURFACESHADER_GPURENDER_PRESET in Xxmbsubsurface
Note that this is not the actual code from the Xxmbsubsurface file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Xxmbsubsurface.res)
LONG XMBSUBSURFACESHADER_GPURENDER_PRESET { CYCLE { XMBSUBSURFACESHADER_PRESET_CUSTOM; XMBSUBSURFACESHADER_PRESET_APPLE; XMBSUBSURFACESHADER_PRESET_CHICKEN; XMBSUBSURFACESHADER_PRESET_CREAM; XMBSUBSURFACESHADER_PRESET_KETCHUP; XMBSUBSURFACESHADER_PRESET_MARBLE; XMBSUBSURFACESHADER_PRESET_MILK_SKIM; XMBSUBSURFACESHADER_PRESET_MILK_WHOLE; XMBSUBSURFACESHADER_PRESET_POTATO; XMBSUBSURFACESHADER_PRESET_SKIN_DARK; XMBSUBSURFACESHADER_PRESET_SKIN_LIGHT; XMBSUBSURFACESHADER_PRESET_SPECTRALON; } }
Header File Code (Xxmbsubsurface.h)
#ifndef XXMBSUBSURFACE_H__ #define XXMBSUBSURFACE_H__ enum { XMBSUBSURFACESHADER_GPURENDER_PRESET = 1000, //First ID should start at 1000 XMBSUBSURFACESHADER_PRESET_CUSTOM = 1, XMBSUBSURFACESHADER_PRESET_APPLE = 2, XMBSUBSURFACESHADER_PRESET_CHICKEN = 3, XMBSUBSURFACESHADER_PRESET_CREAM = 4, XMBSUBSURFACESHADER_PRESET_KETCHUP = 5, XMBSUBSURFACESHADER_PRESET_MARBLE = 6, XMBSUBSURFACESHADER_PRESET_MILK_SKIM = 7, XMBSUBSURFACESHADER_PRESET_MILK_WHOLE = 8, XMBSUBSURFACESHADER_PRESET_POTATO = 9, XMBSUBSURFACESHADER_PRESET_SKIN_DARK = 10, XMBSUBSURFACESHADER_PRESET_SKIN_LIGHT = 11, XMBSUBSURFACESHADER_PRESET_SPECTRALON = 12, }; #endif // XXMBSUBSURFACE_H__
String File Code (Xxmbsubsurface.str)
// C4D-StringResource // Identifier Text STRINGTABLE { XMBSUBSURFACESHADER_GPURENDER_PRESET "Preset"; XMBSUBSURFACESHADER_PRESET_CUSTOM "Custom"; XMBSUBSURFACESHADER_PRESET_APPLE "Apple"; XMBSUBSURFACESHADER_PRESET_CHICKEN "Chicken"; XMBSUBSURFACESHADER_PRESET_CREAM "Cream"; XMBSUBSURFACESHADER_PRESET_KETCHUP "Ketchup"; XMBSUBSURFACESHADER_PRESET_MARBLE "Marble"; XMBSUBSURFACESHADER_PRESET_MILK_SKIM "Milk(Skim)"; XMBSUBSURFACESHADER_PRESET_MILK_WHOLE "Milk(Whole)"; XMBSUBSURFACESHADER_PRESET_POTATO "Potato"; XMBSUBSURFACESHADER_PRESET_SKIN_DARK "Skin(Dark)"; XMBSUBSURFACESHADER_PRESET_SKIN_LIGHT "Skin(Light)"; XMBSUBSURFACESHADER_PRESET_SPECTRALON "Spectralon"; }