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 XPFA_NOISEFALLOFF_REPEAT in Oxpfalloff_noise

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

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

Resource File Code (Oxpfalloff_noise.res)


LONG  XPFA_NOISEFALLOFF_REPEAT
{
                        
    CYCLE 
    {         NOISEFALLOFF_REPEAT_1; 
        NOISEFALLOFF_REPEAT_2; 
        NOISEFALLOFF_REPEAT_3; 
        NOISEFALLOFF_REPEAT_4; 
        NOISEFALLOFF_REPEAT_5; 
        NOISEFALLOFF_REPEAT_6; 
        NOISEFALLOFF_REPEAT_7; 
        NOISEFALLOFF_REPEAT_8; 
        NOISEFALLOFF_REPEAT_9; 
        NOISEFALLOFF_REPEAT_10; 
    }
}
            

Header File Code (Oxpfalloff_noise.h)

#ifndef OXPFALLOFF_NOISE_H__
#define OXPFALLOFF_NOISE_H__
enum
{
  XPFA_NOISEFALLOFF_REPEAT = 1000,  //First ID should start at 1000
    NOISEFALLOFF_REPEAT_1 = 1,
    NOISEFALLOFF_REPEAT_2 = 2,
    NOISEFALLOFF_REPEAT_3 = 3,
    NOISEFALLOFF_REPEAT_4 = 4,
    NOISEFALLOFF_REPEAT_5 = 5,
    NOISEFALLOFF_REPEAT_6 = 6,
    NOISEFALLOFF_REPEAT_7 = 7,
    NOISEFALLOFF_REPEAT_8 = 8,
    NOISEFALLOFF_REPEAT_9 = 9,
    NOISEFALLOFF_REPEAT_10 = 10,
};
#endif	// OXPFALLOFF_NOISE_H__

String File Code (Oxpfalloff_noise.str)

// C4D-StringResource
// Identifier	Text
STRINGTABLE
{
  XPFA_NOISEFALLOFF_REPEAT    "RepeatInterval";
    NOISEFALLOFF_REPEAT_1    "2";
    NOISEFALLOFF_REPEAT_2    "4";
    NOISEFALLOFF_REPEAT_3    "8";
    NOISEFALLOFF_REPEAT_4    "16";
    NOISEFALLOFF_REPEAT_5    "32";
    NOISEFALLOFF_REPEAT_6    "64";
    NOISEFALLOFF_REPEAT_7    "128";
    NOISEFALLOFF_REPEAT_8    "256";
    NOISEFALLOFF_REPEAT_9    "512";
    NOISEFALLOFF_REPEAT_10    "1024";
}