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 GV_XPEMIT_NODE_EMITTER_SPHERE_DIR in GVxpemit

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

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

Resource File Code (GVxpemit.res)


LONG  GV_XPEMIT_NODE_EMITTER_SPHERE_DIR
{
SCALE_H  ;                          
    CYCLE 
    {         NODE_SPHERE_DIR_NORMAL; 
        NODE_SPHERE_DIR_SPHERICAL; 
        NODE_SPHERE_DIR_X; 
        NODE_SPHERE_DIR_XNEG; 
        NODE_SPHERE_DIR_Y; 
        NODE_SPHERE_DIR_YNEG; 
        NODE_SPHERE_DIR_Z; 
        NODE_SPHERE_DIR_ZNEG; 
    }
}
            

Header File Code (GVxpemit.h)

#ifndef GVXPEMIT_H__
#define GVXPEMIT_H__
enum
{
  GV_XPEMIT_NODE_EMITTER_SPHERE_DIR = 1000,  //First ID should start at 1000
    NODE_SPHERE_DIR_NORMAL = 1,
    NODE_SPHERE_DIR_SPHERICAL = 2,
    NODE_SPHERE_DIR_X = 3,
    NODE_SPHERE_DIR_XNEG = 4,
    NODE_SPHERE_DIR_Y = 5,
    NODE_SPHERE_DIR_YNEG = 6,
    NODE_SPHERE_DIR_Z = 7,
    NODE_SPHERE_DIR_ZNEG = 8,
};
#endif	// GVXPEMIT_H__

String File Code (GVxpemit.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  GV_XPEMIT_NODE_EMITTER_SPHERE_DIR    "Direction";
    NODE_SPHERE_DIR_NORMAL    "Normal";
    NODE_SPHERE_DIR_SPHERICAL    "Random";
    NODE_SPHERE_DIR_X    "X+Axis";
    NODE_SPHERE_DIR_XNEG    "X-Axis";
    NODE_SPHERE_DIR_Y    "Y+Axis";
    NODE_SPHERE_DIR_YNEG    "Y-Axis";
    NODE_SPHERE_DIR_Z    "Z+Axis";
    NODE_SPHERE_DIR_ZNEG    "Z-Axis";
}