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 FORCE_FALLOFF
Element Information
Sample Code
Example code for the id FORCE_FALLOFF in DynForce
Note that this is not the actual code from the DynForce file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (DynForce.res)
LONG FORCE_FALLOFF { CYCLE { FORCE_FALLOFF_LINEAR; FORCE_FALLOFF_INV; FORCE_FALLOFF_INV_SQR; FORCE_FALLOFF_INV_CUBIC; FORCE_FALLOFF_STEP; } }
Header File Code (DynForce.h)
#ifndef DYNFORCE_H__ #define DYNFORCE_H__ enum { FORCE_FALLOFF = 1000, //First ID should start at 1000 FORCE_FALLOFF_LINEAR = 1, FORCE_FALLOFF_INV = 2, FORCE_FALLOFF_INV_SQR = 3, FORCE_FALLOFF_INV_CUBIC = 4, FORCE_FALLOFF_STEP = 5, }; #endif // DYNFORCE_H__
String File Code (DynForce.str)
// C4D-StringResource // Identifier Text STRINGTABLE { FORCE_FALLOFF "Falloff"; FORCE_FALLOFF_LINEAR "Linear"; FORCE_FALLOFF_INV "Inverse"; FORCE_FALLOFF_INV_SQR "InverseSquare"; FORCE_FALLOFF_INV_CUBIC "InverseCubic"; FORCE_FALLOFF_STEP "Step"; }