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 GRADIENTSUBCHANNEL_INTERPOLATION
Element Information
Sample Code
Example code for the id GRADIENTSUBCHANNEL_INTERPOLATION in Dgradient
Note that this is not the actual code from the Dgradient file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Dgradient.res)
LONG GRADIENTSUBCHANNEL_INTERPOLATION { CYCLE { GRADIENTSUBCHANNEL_INTERPOLATION_SMOOTHKNOT; GRADIENTSUBCHANNEL_INTERPOLATION_CUBICKNOT; GRADIENTSUBCHANNEL_INTERPOLATION_LINEARKNOT; GRADIENTSUBCHANNEL_INTERPOLATION_NONE; GRADIENTSUBCHANNEL_INTERPOLATION_BLEND; GRADIENTSUBCHANNEL_INTERPOLATION_EXP_UP; GRADIENTSUBCHANNEL_INTERPOLATION_EXP_DOWN; } }
Header File Code (Dgradient.h)
#ifndef DGRADIENT_H__ #define DGRADIENT_H__ enum { GRADIENTSUBCHANNEL_INTERPOLATION = 1000, //First ID should start at 1000 GRADIENTSUBCHANNEL_INTERPOLATION_SMOOTHKNOT = 1, GRADIENTSUBCHANNEL_INTERPOLATION_CUBICKNOT = 2, GRADIENTSUBCHANNEL_INTERPOLATION_LINEARKNOT = 3, GRADIENTSUBCHANNEL_INTERPOLATION_NONE = 4, GRADIENTSUBCHANNEL_INTERPOLATION_BLEND = 5, GRADIENTSUBCHANNEL_INTERPOLATION_EXP_UP = 6, GRADIENTSUBCHANNEL_INTERPOLATION_EXP_DOWN = 7, }; #endif // DGRADIENT_H__
String File Code (Dgradient.str)
// C4D-StringResource // Identifier Text STRINGTABLE { GRADIENTSUBCHANNEL_INTERPOLATION "Interpolation"; GRADIENTSUBCHANNEL_INTERPOLATION_SMOOTHKNOT "Smooth"; GRADIENTSUBCHANNEL_INTERPOLATION_CUBICKNOT "Cubic"; GRADIENTSUBCHANNEL_INTERPOLATION_LINEARKNOT "Linear"; GRADIENTSUBCHANNEL_INTERPOLATION_NONE "Step"; GRADIENTSUBCHANNEL_INTERPOLATION_BLEND "Blend"; GRADIENTSUBCHANNEL_INTERPOLATION_EXP_UP "ExponentUp(legacy)"; GRADIENTSUBCHANNEL_INTERPOLATION_EXP_DOWN "ExponentDown(legacy)"; }