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 SOUNDPROBESUBCHANNEL_COLOR_MODE in Dsoundprobe

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

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

Resource File Code (Dsoundprobe.res)


LONG  SOUNDPROBESUBCHANNEL_COLOR_MODE
{
                        
    CYCLE 
    {         SOUNDPROBESUBCHANNEL_COLOR_MODE_OFF; 
        SOUNDPROBESUBCHANNEL_COLOR_MODE_SOLID; 
        SOUNDPROBESUBCHANNEL_COLOR_MODE_HORIZONTAL; 
        SOUNDPROBESUBCHANNEL_COLOR_MODE_VERTICAL; 
    }
}
            

Header File Code (Dsoundprobe.h)

#ifndef DSOUNDPROBE_H__
#define DSOUNDPROBE_H__
enum
{
  SOUNDPROBESUBCHANNEL_COLOR_MODE = 1000,  //First ID should start at 1000
    SOUNDPROBESUBCHANNEL_COLOR_MODE_OFF = 1,
    SOUNDPROBESUBCHANNEL_COLOR_MODE_SOLID = 2,
    SOUNDPROBESUBCHANNEL_COLOR_MODE_HORIZONTAL = 3,
    SOUNDPROBESUBCHANNEL_COLOR_MODE_VERTICAL = 4,
};
#endif	// DSOUNDPROBE_H__

String File Code (Dsoundprobe.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  SOUNDPROBESUBCHANNEL_COLOR_MODE    "ColorMode";
    SOUNDPROBESUBCHANNEL_COLOR_MODE_OFF    "Off";
    SOUNDPROBESUBCHANNEL_COLOR_MODE_SOLID    "SolidColor";
    SOUNDPROBESUBCHANNEL_COLOR_MODE_HORIZONTAL    "Horizontal";
    SOUNDPROBESUBCHANNEL_COLOR_MODE_VERTICAL    "Vertical";
}