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 HAIR_RENDER_SHADOWS_MAP in VPhairtrace

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

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

Resource File Code (VPhairtrace.res)


LONG  HAIR_RENDER_SHADOWS_MAP
{
                        
    CYCLE 
    {         HAIR_RENDER_SHADOWS_MAP_250; 
        HAIR_RENDER_SHADOWS_MAP_500; 
        HAIR_RENDER_SHADOWS_MAP_750; 
        HAIR_RENDER_SHADOWS_MAP_1000; 
        HAIR_RENDER_SHADOWS_MAP_1250; 
        HAIR_RENDER_SHADOWS_MAP_1500; 
        HAIR_RENDER_SHADOWS_MAP_1750; 
        HAIR_RENDER_SHADOWS_MAP_2000; 
        HAIR_RENDER_SHADOWS_MAP_CUSTOM; 
    }
}
            

Header File Code (VPhairtrace.h)

#ifndef VPHAIRTRACE_H__
#define VPHAIRTRACE_H__
enum
{
  HAIR_RENDER_SHADOWS_MAP = 1000,  //First ID should start at 1000
    HAIR_RENDER_SHADOWS_MAP_250 = 1,
    HAIR_RENDER_SHADOWS_MAP_500 = 2,
    HAIR_RENDER_SHADOWS_MAP_750 = 3,
    HAIR_RENDER_SHADOWS_MAP_1000 = 4,
    HAIR_RENDER_SHADOWS_MAP_1250 = 5,
    HAIR_RENDER_SHADOWS_MAP_1500 = 6,
    HAIR_RENDER_SHADOWS_MAP_1750 = 7,
    HAIR_RENDER_SHADOWS_MAP_2000 = 8,
    HAIR_RENDER_SHADOWS_MAP_CUSTOM = 9,
};
#endif	// VPHAIRTRACE_H__

String File Code (VPhairtrace.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  HAIR_RENDER_SHADOWS_MAP    "ShadowMap";
    HAIR_RENDER_SHADOWS_MAP_250    "250x250";
    HAIR_RENDER_SHADOWS_MAP_500    "500x500";
    HAIR_RENDER_SHADOWS_MAP_750    "750x750";
    HAIR_RENDER_SHADOWS_MAP_1000    "1000x1000";
    HAIR_RENDER_SHADOWS_MAP_1250    "1250x1250";
    HAIR_RENDER_SHADOWS_MAP_1500    "1500x1500";
    HAIR_RENDER_SHADOWS_MAP_1750    "1750x1750";
    HAIR_RENDER_SHADOWS_MAP_2000    "2000x2000";
    HAIR_RENDER_SHADOWS_MAP_CUSTOM    "Custom";
}