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_PROXIMAL_FUNCTION
Element Information
Sample Code
Example code for the id SLA_PROXIMAL_FUNCTION in XSLAProximal
Note that this is not the actual code from the XSLAProximal file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (XSLAProximal.res)
LONG SLA_PROXIMAL_FUNCTION { CYCLE { SLA_PROXIMAL_FUNCTION_LINEAR; SLA_PROXIMAL_FUNCTION_SQUARE; SLA_PROXIMAL_FUNCTION_CUBIC; SLA_PROXIMAL_FUNCTION_STEP; SLA_PROXIMAL_FUNCTION_INVERSE; SLA_PROXIMAL_FUNCTION_INVERSE_SQUARE; SLA_PROXIMAL_FUNCTION_INVERSE_CUBIC; SLA_PROXIMAL_FUNCTION_SMOOTH; } }
Header File Code (XSLAProximal.h)
#ifndef XSLAPROXIMAL_H__ #define XSLAPROXIMAL_H__ enum { SLA_PROXIMAL_FUNCTION = 1000, //First ID should start at 1000 SLA_PROXIMAL_FUNCTION_LINEAR = 1, SLA_PROXIMAL_FUNCTION_SQUARE = 2, SLA_PROXIMAL_FUNCTION_CUBIC = 3, SLA_PROXIMAL_FUNCTION_STEP = 4, SLA_PROXIMAL_FUNCTION_INVERSE = 5, SLA_PROXIMAL_FUNCTION_INVERSE_SQUARE = 6, SLA_PROXIMAL_FUNCTION_INVERSE_CUBIC = 7, SLA_PROXIMAL_FUNCTION_SMOOTH = 8, }; #endif // XSLAPROXIMAL_H__
String File Code (XSLAProximal.str)
// C4D-StringResource // Identifier Text STRINGTABLE { SLA_PROXIMAL_FUNCTION "Function"; SLA_PROXIMAL_FUNCTION_LINEAR "Linear"; SLA_PROXIMAL_FUNCTION_SQUARE "Square"; SLA_PROXIMAL_FUNCTION_CUBIC "Cubic"; SLA_PROXIMAL_FUNCTION_STEP "Step"; SLA_PROXIMAL_FUNCTION_INVERSE "Inverse"; SLA_PROXIMAL_FUNCTION_INVERSE_SQUARE "InverseSquare"; SLA_PROXIMAL_FUNCTION_INVERSE_CUBIC "InverseCubic"; SLA_PROXIMAL_FUNCTION_SMOOTH "Smooth"; }