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 FORCE_REFERENCE_A in DynInteraction

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

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

Resource File Code (DynInteraction.res)


LONG  FORCE_REFERENCE_A
{
                        
    CYCLE 
    {         FORCE_REFERENCE_X; 
        FORCE_REFERENCE_Y; 
        FORCE_REFERENCE_Z; 
        FORCE_REFERENCE_DIRECTION; 
    }
}
            

Header File Code (DynInteraction.h)

#ifndef DYNINTERACTION_H__
#define DYNINTERACTION_H__
enum
{
  FORCE_REFERENCE_A = 1000,  //First ID should start at 1000
    FORCE_REFERENCE_X = 1,
    FORCE_REFERENCE_Y = 2,
    FORCE_REFERENCE_Z = 3,
    FORCE_REFERENCE_DIRECTION = 4,
};
#endif	// DYNINTERACTION_H__

String File Code (DynInteraction.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  FORCE_REFERENCE_A    "ReferenceAxisA";
    FORCE_REFERENCE_X    "XofObject";
    FORCE_REFERENCE_Y    "YofObject";
    FORCE_REFERENCE_Z    "ZofObject";
    FORCE_REFERENCE_DIRECTION    "DirectiontoObject";
}