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 XPFA_NOISEFALLOFF_SHAPE in Oxpfalloff_noise

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

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

Resource File Code (Oxpfalloff_noise.res)


LONG  XPFA_NOISEFALLOFF_SHAPE
{
                        
    CYCLE 
    {         NOISEFALLOFF_SHAPE_NONE; 
        NOISEFALLOFF_SHAPE_BOX; 
        NOISEFALLOFF_SHAPE_SPHERE; 
    }
}
            

Header File Code (Oxpfalloff_noise.h)

#ifndef OXPFALLOFF_NOISE_H__
#define OXPFALLOFF_NOISE_H__
enum
{
  XPFA_NOISEFALLOFF_SHAPE = 1000,  //First ID should start at 1000
    NOISEFALLOFF_SHAPE_NONE = 1,
    NOISEFALLOFF_SHAPE_BOX = 2,
    NOISEFALLOFF_SHAPE_SPHERE = 3,
};
#endif	// OXPFALLOFF_NOISE_H__

String File Code (Oxpfalloff_noise.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XPFA_NOISEFALLOFF_SHAPE    "Shape";
    NOISEFALLOFF_SHAPE_NONE    "Universal";
    NOISEFALLOFF_SHAPE_BOX    "Box";
    NOISEFALLOFF_SHAPE_SPHERE    "Sphere";
}