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.
ID HAIRMATERIAL_TAG_BLEND
Element Information
Sample Code
Example code for the id HAIRMATERIAL_TAG_BLEND in Thairmaterial
Note that this is not the actual code from the Thairmaterial file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Thairmaterial.res)
LONG HAIRMATERIAL_TAG_BLEND { CYCLE { HAIRMATERIAL_TAG_BLENDMODE_AVERAGE; HAIRMATERIAL_TAG_BLENDMODE_NORMAL; HAIRMATERIAL_TAG_BLENDMODE_MULTIPLY; HAIRMATERIAL_TAG_BLENDMODE_SCREEN; HAIRMATERIAL_TAG_BLENDMODE_DARKEN; HAIRMATERIAL_TAG_BLENDMODE_LIGHT; HAIRMATERIAL_TAG_BLENDMODE_DIFFERENCE; HAIRMATERIAL_TAG_BLENDMODE_NEGATIVE; HAIRMATERIAL_TAG_BLENDMODE_EXCLUSION; HAIRMATERIAL_TAG_BLENDMODE_OVERLAY; HAIRMATERIAL_TAG_BLENDMODE_HARDLIGHT; HAIRMATERIAL_TAG_BLENDMODE_SOFTLIGHT; HAIRMATERIAL_TAG_BLENDMODE_DODGE; HAIRMATERIAL_TAG_BLENDMODE_BURN; HAIRMATERIAL_TAG_BLENDMODE_REFLECT; HAIRMATERIAL_TAG_BLENDMODE_GLOW; HAIRMATERIAL_TAG_BLENDMODE_FREEZE; HAIRMATERIAL_TAG_BLENDMODE_HEAT; HAIRMATERIAL_TAG_BLENDMODE_ADD; HAIRMATERIAL_TAG_BLENDMODE_SUB; HAIRMATERIAL_TAG_BLENDMODE_STAMP; HAIRMATERIAL_TAG_BLENDMODE_XOR; HAIRMATERIAL_TAG_BLENDMODE_HUE; HAIRMATERIAL_TAG_BLENDMODE_SATURATION; HAIRMATERIAL_TAG_BLENDMODE_LUMINANCE; HAIRMATERIAL_TAG_BLENDMODE_RED; HAIRMATERIAL_TAG_BLENDMODE_GREEN; HAIRMATERIAL_TAG_BLENDMODE_BLUE; HAIRMATERIAL_TAG_BLENDMODE_OVERWRITE; HAIRMATERIAL_TAG_BLENDMODE_LEVR; } }
Header File Code (Thairmaterial.h)
#ifndef THAIRMATERIAL_H__ #define THAIRMATERIAL_H__ enum { HAIRMATERIAL_TAG_BLEND = 1000, //First ID should start at 1000 HAIRMATERIAL_TAG_BLENDMODE_AVERAGE = 1, HAIRMATERIAL_TAG_BLENDMODE_NORMAL = 2, HAIRMATERIAL_TAG_BLENDMODE_MULTIPLY = 3, HAIRMATERIAL_TAG_BLENDMODE_SCREEN = 4, HAIRMATERIAL_TAG_BLENDMODE_DARKEN = 5, HAIRMATERIAL_TAG_BLENDMODE_LIGHT = 6, HAIRMATERIAL_TAG_BLENDMODE_DIFFERENCE = 7, HAIRMATERIAL_TAG_BLENDMODE_NEGATIVE = 8, HAIRMATERIAL_TAG_BLENDMODE_EXCLUSION = 9, HAIRMATERIAL_TAG_BLENDMODE_OVERLAY = 10, HAIRMATERIAL_TAG_BLENDMODE_HARDLIGHT = 11, HAIRMATERIAL_TAG_BLENDMODE_SOFTLIGHT = 12, HAIRMATERIAL_TAG_BLENDMODE_DODGE = 13, HAIRMATERIAL_TAG_BLENDMODE_BURN = 14, HAIRMATERIAL_TAG_BLENDMODE_REFLECT = 15, HAIRMATERIAL_TAG_BLENDMODE_GLOW = 16, HAIRMATERIAL_TAG_BLENDMODE_FREEZE = 17, HAIRMATERIAL_TAG_BLENDMODE_HEAT = 18, HAIRMATERIAL_TAG_BLENDMODE_ADD = 19, HAIRMATERIAL_TAG_BLENDMODE_SUB = 20, HAIRMATERIAL_TAG_BLENDMODE_STAMP = 21, HAIRMATERIAL_TAG_BLENDMODE_XOR = 22, HAIRMATERIAL_TAG_BLENDMODE_HUE = 23, HAIRMATERIAL_TAG_BLENDMODE_SATURATION = 24, HAIRMATERIAL_TAG_BLENDMODE_LUMINANCE = 25, HAIRMATERIAL_TAG_BLENDMODE_RED = 26, HAIRMATERIAL_TAG_BLENDMODE_GREEN = 27, HAIRMATERIAL_TAG_BLENDMODE_BLUE = 28, HAIRMATERIAL_TAG_BLENDMODE_OVERWRITE = 29, HAIRMATERIAL_TAG_BLENDMODE_LEVR = 30, }; #endif // THAIRMATERIAL_H__
String File Code (Thairmaterial.str)
// C4D-StringResource // Identifier Text STRINGTABLE { HAIRMATERIAL_TAG_BLEND "Blend"; HAIRMATERIAL_TAG_BLENDMODE_AVERAGE "Average"; HAIRMATERIAL_TAG_BLENDMODE_NORMAL "Normal"; HAIRMATERIAL_TAG_BLENDMODE_MULTIPLY "Multiply"; HAIRMATERIAL_TAG_BLENDMODE_SCREEN "Screen"; HAIRMATERIAL_TAG_BLENDMODE_DARKEN "Darken"; HAIRMATERIAL_TAG_BLENDMODE_LIGHT "Lighten"; HAIRMATERIAL_TAG_BLENDMODE_DIFFERENCE "Difference"; HAIRMATERIAL_TAG_BLENDMODE_NEGATIVE "Negative"; HAIRMATERIAL_TAG_BLENDMODE_EXCLUSION "Exclusion"; HAIRMATERIAL_TAG_BLENDMODE_OVERLAY "Overlay"; HAIRMATERIAL_TAG_BLENDMODE_HARDLIGHT "HardLight"; HAIRMATERIAL_TAG_BLENDMODE_SOFTLIGHT "SoftLight"; HAIRMATERIAL_TAG_BLENDMODE_DODGE "Dodge"; HAIRMATERIAL_TAG_BLENDMODE_BURN "Burn"; HAIRMATERIAL_TAG_BLENDMODE_REFLECT "Reflect"; HAIRMATERIAL_TAG_BLENDMODE_GLOW "Glow"; HAIRMATERIAL_TAG_BLENDMODE_FREEZE "Freeze"; HAIRMATERIAL_TAG_BLENDMODE_HEAT "Heat"; HAIRMATERIAL_TAG_BLENDMODE_ADD "Add"; HAIRMATERIAL_TAG_BLENDMODE_SUB "Subtract"; HAIRMATERIAL_TAG_BLENDMODE_STAMP "Stamp"; HAIRMATERIAL_TAG_BLENDMODE_XOR "Xor"; HAIRMATERIAL_TAG_BLENDMODE_HUE "Hue"; HAIRMATERIAL_TAG_BLENDMODE_SATURATION "Saturation"; HAIRMATERIAL_TAG_BLENDMODE_LUMINANCE "Luminance"; HAIRMATERIAL_TAG_BLENDMODE_RED "Red"; HAIRMATERIAL_TAG_BLENDMODE_GREEN "Green"; HAIRMATERIAL_TAG_BLENDMODE_BLUE "Blue"; HAIRMATERIAL_TAG_BLENDMODE_OVERWRITE "Overwrite"; HAIRMATERIAL_TAG_BLENDMODE_LEVR "Levr"; }