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_TRAIL_CONNECT_ALGORITHM 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_TRAIL_CONNECT_ALGORITHM
{
                        
    CYCLE 
    {         ATRAIL_ALGO_NONE; 
        ATRAIL_ALGO_SINGLE; 
        ATRAIL_ALGO_SEGMENTED; 
        ATRAIL_ALGO_ALL; 
        ATRAIL_ALGO_NEARESTINDICES; 
        ATRAIL_ALGO_NEARESTDISTANCE; 
        ATRAIL_ALGO_CLUSTER; 
        ATRAIL_ALGO_TENDRIL; 
        ATRAIL_ALGO_CONSTRAINTS; 
    }
}
            

Header File Code (Oxpaction.h)

#ifndef OXPACTION_H__
#define OXPACTION_H__
enum
{
  XPA_TRAIL_CONNECT_ALGORITHM = 1000,  //First ID should start at 1000
    ATRAIL_ALGO_NONE = 1,
    ATRAIL_ALGO_SINGLE = 2,
    ATRAIL_ALGO_SEGMENTED = 3,
    ATRAIL_ALGO_ALL = 4,
    ATRAIL_ALGO_NEARESTINDICES = 5,
    ATRAIL_ALGO_NEARESTDISTANCE = 6,
    ATRAIL_ALGO_CLUSTER = 7,
    ATRAIL_ALGO_TENDRIL = 8,
    ATRAIL_ALGO_CONSTRAINTS = 9,
};
#endif	// OXPACTION_H__

String File Code (Oxpaction.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XPA_TRAIL_CONNECT_ALGORITHM    "Algorithm";
    ATRAIL_ALGO_NONE    "NoConnections";
    ATRAIL_ALGO_SINGLE    "StraightSequence";
    ATRAIL_ALGO_SEGMENTED    "SegmentedSequence";
    ATRAIL_ALGO_ALL    "AllPointstoallPoints";
    ATRAIL_ALGO_NEARESTINDICES    "NearestbyIndex";
    ATRAIL_ALGO_NEARESTDISTANCE    "NearestbyDistance";
    ATRAIL_ALGO_CLUSTER    "Cluster";
    ATRAIL_ALGO_TENDRIL    "Tendrils";
    ATRAIL_ALGO_CONSTRAINTS    "Constraints";
}