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 TXGA_ATTACH_DRAWLINES in Txgenattach

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

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

Resource File Code (Txgenattach.res)


LONG  TXGA_ATTACH_DRAWLINES
{
                        
    CYCLE 
    {         ATTACH_DRAWLINES_NONE; 
        ATTACH_DRAWLINES_XPMAT; 
        ATTACH_DRAWLINES_SWEEP; 
        ATTACH_DRAWLINES_HAIR; 
        ATTACH_DRAWLINES_SANDT; 
    }
}
            

Header File Code (Txgenattach.h)

#ifndef TXGENATTACH_H__
#define TXGENATTACH_H__
enum
{
  TXGA_ATTACH_DRAWLINES = 1000,  //First ID should start at 1000
    ATTACH_DRAWLINES_NONE = 1,
    ATTACH_DRAWLINES_XPMAT = 2,
    ATTACH_DRAWLINES_SWEEP = 3,
    ATTACH_DRAWLINES_HAIR = 4,
    ATTACH_DRAWLINES_SANDT = 5,
};
#endif	// TXGENATTACH_H__

String File Code (Txgenattach.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  TXGA_ATTACH_DRAWLINES    "DrawConnectingLines";
    ATTACH_DRAWLINES_NONE    "None";
    ATTACH_DRAWLINES_XPMAT    "UseXPMaterial";
    ATTACH_DRAWLINES_SWEEP    "UseSweepObject";
    ATTACH_DRAWLINES_HAIR    "UseHairMaterial";
    ATTACH_DRAWLINES_SANDT    "UseSketch&Toon";
}