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_DEFINED_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_DEFINED_DIR
{
                        
    CYCLE 
    {         NODE_SOURCE_DIR_SPHERICAL; 
        NODE_SOURCE_DIR_X; 
        NODE_SOURCE_DIR_XNEG; 
        NODE_SOURCE_DIR_Y; 
        NODE_SOURCE_DIR_YNEG; 
        NODE_SOURCE_DIR_Z; 
        NODE_SOURCE_DIR_ZNEG; 
    }
}
            

Header File Code (GVxpemit.h)

#ifndef GVXPEMIT_H__
#define GVXPEMIT_H__
enum
{
  GV_XPEMIT_NODE_EMITTER_DEFINED_DIR = 1000,  //First ID should start at 1000
    NODE_SOURCE_DIR_SPHERICAL = 1,
    NODE_SOURCE_DIR_X = 2,
    NODE_SOURCE_DIR_XNEG = 3,
    NODE_SOURCE_DIR_Y = 4,
    NODE_SOURCE_DIR_YNEG = 5,
    NODE_SOURCE_DIR_Z = 6,
    NODE_SOURCE_DIR_ZNEG = 7,
};
#endif	// GVXPEMIT_H__

String File Code (GVxpemit.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  GV_XPEMIT_NODE_EMITTER_DEFINED_DIR    "InitialDirection";
    NODE_SOURCE_DIR_SPHERICAL    "Random";
    NODE_SOURCE_DIR_X    "X+Axis";
    NODE_SOURCE_DIR_XNEG    "X-Axis";
    NODE_SOURCE_DIR_Y    "Y+Axis";
    NODE_SOURCE_DIR_YNEG    "Y-Axis";
    NODE_SOURCE_DIR_Z    "Z+Axis";
    NODE_SOURCE_DIR_ZNEG    "Z-Axis";
}