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 SLA_FRESNEL_RENDER
Element Information
Sample Code
Example code for the id SLA_FRESNEL_RENDER in XSLAFresnel
Note that this is not the actual code from the XSLAFresnel file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (XSLAFresnel.res)
LONG SLA_FRESNEL_RENDER
{
CYCLE
{ SLA_FRESNEL_RENDER_FRONT_ONLY;
SLA_FRESNEL_RENDER_FRONT_TRANS;
SLA_FRESNEL_RENDER_BACK_ONLY;
SLA_FRESNEL_RENDER_BACK_TRANS;
SLA_FRESNEL_RENDER_FRONT_BACK;
}
}
Header File Code (XSLAFresnel.h)
#ifndef XSLAFRESNEL_H__
#define XSLAFRESNEL_H__
enum
{
SLA_FRESNEL_RENDER = 1000, //First ID should start at 1000
SLA_FRESNEL_RENDER_FRONT_ONLY = 1,
SLA_FRESNEL_RENDER_FRONT_TRANS = 2,
SLA_FRESNEL_RENDER_BACK_ONLY = 3,
SLA_FRESNEL_RENDER_BACK_TRANS = 4,
SLA_FRESNEL_RENDER_FRONT_BACK = 5,
};
#endif // XSLAFRESNEL_H__
String File Code (XSLAFresnel.str)
// C4D-StringResource
// Identifier Text
STRINGTABLE
{
SLA_FRESNEL_RENDER "Render";
SLA_FRESNEL_RENDER_FRONT_ONLY "FrontOnly";
SLA_FRESNEL_RENDER_FRONT_TRANS "FrontTrans";
SLA_FRESNEL_RENDER_BACK_ONLY "BackOnly";
SLA_FRESNEL_RENDER_BACK_TRANS "BackTrans";
SLA_FRESNEL_RENDER_FRONT_BACK "FrontandBack";
}