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 ID_XP_TOOL_PAINT_DIRECTION
Element Information
Sample Code
Example code for the id ID_XP_TOOL_PAINT_DIRECTION in Xptoolpaint
Note that this is not the actual code from the Xptoolpaint file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Xptoolpaint.res)
LONG ID_XP_TOOL_PAINT_DIRECTION { CYCLE { ID_XP_TOOL_PAINT_DIRECTION_RANDOM; ID_XP_TOOL_PAINT_DIRECTION_WORLD_X; ID_XP_TOOL_PAINT_DIRECTION_WORLD_Y; ID_XP_TOOL_PAINT_DIRECTION_WORLD_Z; ID_XP_TOOL_PAINT_DIRECTION_WORLD_NX; ID_XP_TOOL_PAINT_DIRECTION_WORLD_NY; ID_XP_TOOL_PAINT_DIRECTION_WORLD_NZ; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_X; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_Y; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_Z; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_NX; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_NY; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_NZ; ID_XP_TOOL_PAINT_DIRECTION_NORMAL; } }
Header File Code (Xptoolpaint.h)
#ifndef XPTOOLPAINT_H__ #define XPTOOLPAINT_H__ enum { ID_XP_TOOL_PAINT_DIRECTION = 1000, //First ID should start at 1000 ID_XP_TOOL_PAINT_DIRECTION_RANDOM = 1, ID_XP_TOOL_PAINT_DIRECTION_WORLD_X = 2, ID_XP_TOOL_PAINT_DIRECTION_WORLD_Y = 3, ID_XP_TOOL_PAINT_DIRECTION_WORLD_Z = 4, ID_XP_TOOL_PAINT_DIRECTION_WORLD_NX = 5, ID_XP_TOOL_PAINT_DIRECTION_WORLD_NY = 6, ID_XP_TOOL_PAINT_DIRECTION_WORLD_NZ = 7, ID_XP_TOOL_PAINT_DIRECTION_LOCAL_X = 8, ID_XP_TOOL_PAINT_DIRECTION_LOCAL_Y = 9, ID_XP_TOOL_PAINT_DIRECTION_LOCAL_Z = 10, ID_XP_TOOL_PAINT_DIRECTION_LOCAL_NX = 11, ID_XP_TOOL_PAINT_DIRECTION_LOCAL_NY = 12, ID_XP_TOOL_PAINT_DIRECTION_LOCAL_NZ = 13, ID_XP_TOOL_PAINT_DIRECTION_NORMAL = 14, }; #endif // XPTOOLPAINT_H__
String File Code (Xptoolpaint.str)
// C4D-StringResource // Identifier Text STRINGTABLE { ID_XP_TOOL_PAINT_DIRECTION "Direction"; ID_XP_TOOL_PAINT_DIRECTION_RANDOM "Random"; ID_XP_TOOL_PAINT_DIRECTION_WORLD_X "World+X"; ID_XP_TOOL_PAINT_DIRECTION_WORLD_Y "World+Y"; ID_XP_TOOL_PAINT_DIRECTION_WORLD_Z "World+Z"; ID_XP_TOOL_PAINT_DIRECTION_WORLD_NX "World-X"; ID_XP_TOOL_PAINT_DIRECTION_WORLD_NY "World-Y"; ID_XP_TOOL_PAINT_DIRECTION_WORLD_NZ "World-Z"; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_X "Object+X"; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_Y "Object+Y"; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_Z "Object+Z"; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_NX "Object-X"; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_NY "Object-Y"; ID_XP_TOOL_PAINT_DIRECTION_LOCAL_NZ "Object-Z"; ID_XP_TOOL_PAINT_DIRECTION_NORMAL "Normal"; }