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 PAGE_TYPE in IF_ParticleAge

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

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

Resource File Code (IF_ParticleAge.res)


LONG  PAGE_TYPE
{
INPORT  ;  EDITPORT  ;                          
    CYCLE 
    {         PAGE_TYPE_BORN; 
        PAGE_TYPE_DIE; 
        PAGE_TYPE_ENTERSGROUP; 
        PAGE_TYPE_RELATIVE; 
        PAGE_TYPE_ABSOLUTE; 
    }
}
            

Header File Code (IF_ParticleAge.h)

#ifndef IF_PARTICLEAGE_H__
#define IF_PARTICLEAGE_H__
enum
{
  PAGE_TYPE = 1000,  //First ID should start at 1000
    PAGE_TYPE_BORN = 1,
    PAGE_TYPE_DIE = 2,
    PAGE_TYPE_ENTERSGROUP = 3,
    PAGE_TYPE_RELATIVE = 4,
    PAGE_TYPE_ABSOLUTE = 5,
};
#endif	// IF_PARTICLEAGE_H__

String File Code (IF_ParticleAge.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  PAGE_TYPE    "Type";
    PAGE_TYPE_BORN    "Born";
    PAGE_TYPE_DIE    "Die";
    PAGE_TYPE_ENTERSGROUP    "EntersGroup";
    PAGE_TYPE_RELATIVE    "Relative";
    PAGE_TYPE_ABSOLUTE    "Absolute";
}