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 XPA_ACTION_DIRECT in Oxpaction

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

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

Resource File Code (Oxpaction.res)


LONG  XPA_ACTION_DIRECT
{
ANIM  OFF;  SCALE_H  ;  CUSTOMGUI  CYCLE;                          
    CYCLE 
    {         XPA_GEOMETRY; 
        1027504; 
        XPA_NEWGROUP; 
        1028703; 
        XPA_LIFE; 
        1027511; 
        XPA_LIGHT; 
        1028030; 
        XPA_SCALE; 
        1027803; 
        XPA_SPEED; 
        1027506; 
        XPA_SPIN; 
        1027804; 
        XPA_SPRITE; 
        1028094; 
        XPA_MORPH; 
        1029125; 
        XPA_SPAWN; 
        1027505; 
        XPA_EXPLODE; 
        1032296; 
        XPA_FREEZE; 
        1027802; 
    }
}
            

Header File Code (Oxpaction.h)

#ifndef OXPACTION_H__
#define OXPACTION_H__
enum
{
  XPA_ACTION_DIRECT = 1000,  //First ID should start at 1000
    XPA_GEOMETRY = 1,
    1027504 = 2,
    XPA_NEWGROUP = 3,
    1028703 = 4,
    XPA_LIFE = 5,
    1027511 = 6,
    XPA_LIGHT = 7,
    1028030 = 8,
    XPA_SCALE = 9,
    1027803 = 10,
    XPA_SPEED = 11,
    1027506 = 12,
    XPA_SPIN = 13,
    1027804 = 14,
    XPA_SPRITE = 15,
    1028094 = 16,
    XPA_MORPH = 17,
    1029125 = 18,
    XPA_SPAWN = 19,
    1027505 = 20,
    XPA_EXPLODE = 21,
    1032296 = 22,
    XPA_FREEZE = 23,
    1027802 = 24,
};
#endif	// OXPACTION_H__

String File Code (Oxpaction.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XPA_ACTION_DIRECT    "DirectActions";
    XPA_GEOMETRY    "ChangeGeometry";
    1027504    "";
    XPA_NEWGROUP    "ChangeGroup";
    1028703    "";
    XPA_LIFE    "ChangeLife";
    1027511    "";
    XPA_LIGHT    "ChangeLights";
    1028030    "";
    XPA_SCALE    "ChangeScale";
    1027803    "";
    XPA_SPEED    "ChangeSpeed";
    1027506    "";
    XPA_SPIN    "ChangeSpin";
    1027804    "";
    XPA_SPRITE    "ChangeSprites";
    1028094    "";
    XPA_MORPH    "ControlMorphing";
    1029125    "";
    XPA_SPAWN    "ControlSpawning";
    1027505    "";
    XPA_EXPLODE    "ExplodeParticles";
    1032296    "";
    XPA_FREEZE    "FreezeParticles";
    1027802    "";
}