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_GRADIENT_SPACE
Element Information
Sample Code
Example code for the id SLA_GRADIENT_SPACE in XSLAGradient
Note that this is not the actual code from the XSLAGradient file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (XSLAGradient.res)
LONG SLA_GRADIENT_SPACE { CYCLE { SLA_GRADIENT_SPACE_TEXTURE; SLA_GRADIENT_SPACE_OBJECT; SLA_GRADIENT_SPACE_WORLD; SLA_GRADIENT_SPACE_CAMERA; SLA_GRADIENT_SPACE_SCREEN; SLA_GRADIENT_SPACE_RASTER; } }
Header File Code (XSLAGradient.h)
#ifndef XSLAGRADIENT_H__ #define XSLAGRADIENT_H__ enum { SLA_GRADIENT_SPACE = 1000, //First ID should start at 1000 SLA_GRADIENT_SPACE_TEXTURE = 1, SLA_GRADIENT_SPACE_OBJECT = 2, SLA_GRADIENT_SPACE_WORLD = 3, SLA_GRADIENT_SPACE_CAMERA = 4, SLA_GRADIENT_SPACE_SCREEN = 5, SLA_GRADIENT_SPACE_RASTER = 6, }; #endif // XSLAGRADIENT_H__
String File Code (XSLAGradient.str)
// C4D-StringResource // Identifier Text STRINGTABLE { SLA_GRADIENT_SPACE "Space"; SLA_GRADIENT_SPACE_TEXTURE "Texture"; SLA_GRADIENT_SPACE_OBJECT "Object"; SLA_GRADIENT_SPACE_WORLD "World"; SLA_GRADIENT_SPACE_CAMERA "Camera"; SLA_GRADIENT_SPACE_SCREEN "Screen"; SLA_GRADIENT_SPACE_RASTER "Raster"; }