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 FIELD_CONE_DIRECTION
Element Information
Sample Code
Example code for the id FIELD_CONE_DIRECTION in Fcone
Note that this is not the actual code from the Fcone file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Fcone.res)
LONG FIELD_CONE_DIRECTION
{
CYCLE
{ FIELD_CONE_DIRECTION_XP;
FIELD_CONE_DIRECTION_XN;
FIELD_CONE_DIRECTION_YP;
FIELD_CONE_DIRECTION_YN;
FIELD_CONE_DIRECTION_ZP;
FIELD_CONE_DIRECTION_ZN;
}
}
Header File Code (Fcone.h)
#ifndef FCONE_H__
#define FCONE_H__
enum
{
FIELD_CONE_DIRECTION = 1000, //First ID should start at 1000
FIELD_CONE_DIRECTION_XP = 1,
FIELD_CONE_DIRECTION_XN = 2,
FIELD_CONE_DIRECTION_YP = 3,
FIELD_CONE_DIRECTION_YN = 4,
FIELD_CONE_DIRECTION_ZP = 5,
FIELD_CONE_DIRECTION_ZN = 6,
};
#endif // FCONE_H__
String File Code (Fcone.str)
// C4D-StringResource
// Identifier Text
STRINGTABLE
{
FIELD_CONE_DIRECTION "Direction";
FIELD_CONE_DIRECTION_XP "X+";
FIELD_CONE_DIRECTION_XN "X-";
FIELD_CONE_DIRECTION_YP "Y+";
FIELD_CONE_DIRECTION_YN "Y-";
FIELD_CONE_DIRECTION_ZP "Z+";
FIELD_CONE_DIRECTION_ZN "Z-";
}