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.

Element Information

Sample Code

Example code for the id SLA_NOISE_SPACE in XSLANoise

Note that this is not the actual code from the XSLANoise file.

This code is just an example to show you how to add a similar control to your own description.

Resource File Code (XSLANoise.res)


LONG  SLA_NOISE_SPACE
{
                        
    CYCLE 
    {         SLA_NOISE_SPACE_UV; 
        SLA_NOISE_SPACE_TEXTURE; 
        SLA_NOISE_SPACE_OBJECT; 
        SLA_NOISE_SPACE_WORLD; 
        SLA_NOISE_SPACE_CAMERA; 
        SLA_NOISE_SPACE_SCREEN; 
        SLA_NOISE_SPACE_RASTER; 
    }
}
            

Header File Code (XSLANoise.h)

#ifndef XSLANOISE_H__
#define XSLANOISE_H__
enum
{
  SLA_NOISE_SPACE = 1000,  //First ID should start at 1000
    SLA_NOISE_SPACE_UV = 1,
    SLA_NOISE_SPACE_TEXTURE = 2,
    SLA_NOISE_SPACE_OBJECT = 3,
    SLA_NOISE_SPACE_WORLD = 4,
    SLA_NOISE_SPACE_CAMERA = 5,
    SLA_NOISE_SPACE_SCREEN = 6,
    SLA_NOISE_SPACE_RASTER = 7,
};
#endif	// XSLANOISE_H__

String File Code (XSLANoise.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  SLA_NOISE_SPACE    "Space";
    SLA_NOISE_SPACE_UV    "UV(2D)";
    SLA_NOISE_SPACE_TEXTURE    "Texture";
    SLA_NOISE_SPACE_OBJECT    "Object";
    SLA_NOISE_SPACE_WORLD    "World";
    SLA_NOISE_SPACE_CAMERA    "Camera";
    SLA_NOISE_SPACE_SCREEN    "Screen";
    SLA_NOISE_SPACE_RASTER    "Raster";
}