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 PSRMATRIX_ORDER in Dpsrmatrix

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

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

Resource File Code (Dpsrmatrix.res)


LONG  PSRMATRIX_ORDER
{
                        
    CYCLE 
    {         0; 
        ZXYGLOBAL; 
        1; 
        ZYXGLOBAL; 
        2; 
        YXZGLOBAL; 
        3; 
        YZXGLOBAL; 
        4; 
        XZYGLOBAL; 
        5; 
        XYZGLOBAL; 
    }
}
            

Header File Code (Dpsrmatrix.h)

#ifndef DPSRMATRIX_H__
#define DPSRMATRIX_H__
enum
{
  PSRMATRIX_ORDER = 1000,  //First ID should start at 1000
    0 = 1,
    ZXYGLOBAL = 2,
    1 = 3,
    ZYXGLOBAL = 4,
    2 = 5,
    YXZGLOBAL = 6,
    3 = 7,
    YZXGLOBAL = 8,
    4 = 9,
    XZYGLOBAL = 10,
    5 = 11,
    XYZGLOBAL = 12,
};
#endif	// DPSRMATRIX_H__

String File Code (Dpsrmatrix.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  PSRMATRIX_ORDER    "Order";
    0    "";
    ZXYGLOBAL    "LocalYXZ/GlobalZXY";
    1    "";
    ZYXGLOBAL    "LocalXYZ/GlobalZYX";
    2    "";
    YXZGLOBAL    "LocalZXY/GlobalYXZ";
    3    "";
    YZXGLOBAL    "LocalXZY/GlobalYZX";
    4    "";
    XZYGLOBAL    "LocalYZX/GlobalXZY";
    5    "";
    XYZGLOBAL    "LocalZYX/GlobalXYZ";
}