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.
ID XTR_TRAIL_CONNECT_ALGORITHM
Element Information
Sample Code
Example code for the id XTR_TRAIL_CONNECT_ALGORITHM in Oxptrail
Note that this is not the actual code from the Oxptrail file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Oxptrail.res)
LONG XTR_TRAIL_CONNECT_ALGORITHM { CYCLE { TRAIL_ALGO_NONE; TRAIL_ALGO_SINGLE; TRAIL_ALGO_SEGMENTED; TRAIL_ALGO_ALL; TRAIL_ALGO_NEARESTINDICES; TRAIL_ALGO_NEARESTDISTANCE; TRAIL_ALGO_CLUSTER; TRAIL_ALGO_TENDRIL; TRAIL_ALGO_CONSTRAINTS; } }
Header File Code (Oxptrail.h)
#ifndef OXPTRAIL_H__ #define OXPTRAIL_H__ enum { XTR_TRAIL_CONNECT_ALGORITHM = 1000, //First ID should start at 1000 TRAIL_ALGO_NONE = 1, TRAIL_ALGO_SINGLE = 2, TRAIL_ALGO_SEGMENTED = 3, TRAIL_ALGO_ALL = 4, TRAIL_ALGO_NEARESTINDICES = 5, TRAIL_ALGO_NEARESTDISTANCE = 6, TRAIL_ALGO_CLUSTER = 7, TRAIL_ALGO_TENDRIL = 8, TRAIL_ALGO_CONSTRAINTS = 9, }; #endif // OXPTRAIL_H__
String File Code (Oxptrail.str)
// C4D-StringResource // Identifier Text STRINGTABLE { XTR_TRAIL_CONNECT_ALGORITHM "Algorithm"; TRAIL_ALGO_NONE "NoConnections"; TRAIL_ALGO_SINGLE "StraightSequence"; TRAIL_ALGO_SEGMENTED "SegmentedSequence"; TRAIL_ALGO_ALL "AllPointstoallPoints"; TRAIL_ALGO_NEARESTINDICES "NearestbyIndex"; TRAIL_ALGO_NEARESTDISTANCE "NearestbyDistance"; TRAIL_ALGO_CLUSTER "Cluster"; TRAIL_ALGO_TENDRIL "Tendrils"; TRAIL_ALGO_CONSTRAINTS "Constraints"; }