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 XMODNULL_MODS3 in Oxmodnull

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

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

Resource File Code (Oxmodnull.res)


LONG  XMODNULL_MODS3
{
ANIM  OFF;  CUSTOMGUI  CYCLE;                          
    CYCLE 
    {         XMODNULL_CHOOSE_3; 
        1029576; 
        XMODNULL_LIGHT; 
        1027988; 
        XMODNULL_SPRITEM; 
        1028062; 
        XMODNULL_SPSHADER; 
        1029093; 
        XMODNULL_TEXT; 
        1029133; 
    }
}
            

Header File Code (Oxmodnull.h)

#ifndef OXMODNULL_H__
#define OXMODNULL_H__
enum
{
  XMODNULL_MODS3 = 1000,  //First ID should start at 1000
    XMODNULL_CHOOSE_3 = 1,
    1029576 = 2,
    XMODNULL_LIGHT = 3,
    1027988 = 4,
    XMODNULL_SPRITEM = 5,
    1028062 = 6,
    XMODNULL_SPSHADER = 7,
    1029093 = 8,
    XMODNULL_TEXT = 9,
    1029133 = 10,
};
#endif	// OXMODNULL_H__

String File Code (Oxmodnull.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XMODNULL_MODS3    "SpritesModifiers";
    XMODNULL_CHOOSE_3    "ChooseSpritesModifier...";
    1029576    "";
    XMODNULL_LIGHT    "Light";
    1027988    "";
    XMODNULL_SPRITEM    "Sprite";
    1028062    "";
    XMODNULL_SPSHADER    "SpriteShader";
    1029093    "";
    XMODNULL_TEXT    "Text";
    1029133    "";
}