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 SLA_FRESNEL_PHY_IOR_PRESET
Element Information
Sample Code
Example code for the id SLA_FRESNEL_PHY_IOR_PRESET in XSLAFresnel
Note that this is not the actual code from the XSLAFresnel file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (XSLAFresnel.res)
LONG SLA_FRESNEL_PHY_IOR_PRESET { CYCLE { SLA_FRESNEL_PHY_IOR_PRESET_CUSTOM; SLA_FRESNEL_PHY_IOR_PRESET_ASPHALT; SLA_FRESNEL_PHY_IOR_PRESET_BEER; SLA_FRESNEL_PHY_IOR_PRESET_BRONZE; SLA_FRESNEL_PHY_IOR_PRESET_COPPER; SLA_FRESNEL_PHY_IOR_PRESET_DIAMOND; SLA_FRESNEL_PHY_IOR_PRESET_EMERALD; SLA_FRESNEL_PHY_IOR_PRESET_ETHANOL; SLA_FRESNEL_PHY_IOR_PRESET_GLASS; SLA_FRESNEL_PHY_IOR_PRESET_HEAVYFLINTGLASS; SLA_FRESNEL_PHY_IOR_PRESET_IRON; SLA_FRESNEL_PHY_IOR_PRESET_JADE; SLA_FRESNEL_PHY_IOR_PRESET_MILK; SLA_FRESNEL_PHY_IOR_PRESET_MOONSTONE; SLA_FRESNEL_PHY_IOR_PRESET_OIL_VEGETABLE; SLA_FRESNEL_PHY_IOR_PRESET_OPAL; SLA_FRESNEL_PHY_IOR_PRESET_PEARL; SLA_FRESNEL_PHY_IOR_PRESET_PLASTIC; SLA_FRESNEL_PHY_IOR_PRESET_PET; SLA_FRESNEL_PHY_IOR_PRESET_PLEXIGLASS; SLA_FRESNEL_PHY_IOR_PRESET_RUBBER; SLA_FRESNEL_PHY_IOR_PRESET_RUBY; SLA_FRESNEL_PHY_IOR_PRESET_SALT; SLA_FRESNEL_PHY_IOR_PRESET_SAPPHIRE; SLA_FRESNEL_PHY_IOR_PRESET_TEFLON; SLA_FRESNEL_PHY_IOR_PRESET_TITANIUM; SLA_FRESNEL_PHY_IOR_PRESET_TOPAZ; SLA_FRESNEL_PHY_IOR_PRESET_WATER; SLA_FRESNEL_PHY_IOR_PRESET_WATER_ICE; SLA_FRESNEL_PHY_IOR_PRESET_WHISKEY; SLA_FRESNEL_PHY_IOR_PRESET_WOOD; } }
Header File Code (XSLAFresnel.h)
#ifndef XSLAFRESNEL_H__ #define XSLAFRESNEL_H__ enum { SLA_FRESNEL_PHY_IOR_PRESET = 1000, //First ID should start at 1000 SLA_FRESNEL_PHY_IOR_PRESET_CUSTOM = 1, SLA_FRESNEL_PHY_IOR_PRESET_ASPHALT = 2, SLA_FRESNEL_PHY_IOR_PRESET_BEER = 3, SLA_FRESNEL_PHY_IOR_PRESET_BRONZE = 4, SLA_FRESNEL_PHY_IOR_PRESET_COPPER = 5, SLA_FRESNEL_PHY_IOR_PRESET_DIAMOND = 6, SLA_FRESNEL_PHY_IOR_PRESET_EMERALD = 7, SLA_FRESNEL_PHY_IOR_PRESET_ETHANOL = 8, SLA_FRESNEL_PHY_IOR_PRESET_GLASS = 9, SLA_FRESNEL_PHY_IOR_PRESET_HEAVYFLINTGLASS = 10, SLA_FRESNEL_PHY_IOR_PRESET_IRON = 11, SLA_FRESNEL_PHY_IOR_PRESET_JADE = 12, SLA_FRESNEL_PHY_IOR_PRESET_MILK = 13, SLA_FRESNEL_PHY_IOR_PRESET_MOONSTONE = 14, SLA_FRESNEL_PHY_IOR_PRESET_OIL_VEGETABLE = 15, SLA_FRESNEL_PHY_IOR_PRESET_OPAL = 16, SLA_FRESNEL_PHY_IOR_PRESET_PEARL = 17, SLA_FRESNEL_PHY_IOR_PRESET_PLASTIC = 18, SLA_FRESNEL_PHY_IOR_PRESET_PET = 19, SLA_FRESNEL_PHY_IOR_PRESET_PLEXIGLASS = 20, SLA_FRESNEL_PHY_IOR_PRESET_RUBBER = 21, SLA_FRESNEL_PHY_IOR_PRESET_RUBY = 22, SLA_FRESNEL_PHY_IOR_PRESET_SALT = 23, SLA_FRESNEL_PHY_IOR_PRESET_SAPPHIRE = 24, SLA_FRESNEL_PHY_IOR_PRESET_TEFLON = 25, SLA_FRESNEL_PHY_IOR_PRESET_TITANIUM = 26, SLA_FRESNEL_PHY_IOR_PRESET_TOPAZ = 27, SLA_FRESNEL_PHY_IOR_PRESET_WATER = 28, SLA_FRESNEL_PHY_IOR_PRESET_WATER_ICE = 29, SLA_FRESNEL_PHY_IOR_PRESET_WHISKEY = 30, SLA_FRESNEL_PHY_IOR_PRESET_WOOD = 31, }; #endif // XSLAFRESNEL_H__
String File Code (XSLAFresnel.str)
// C4D-StringResource // Identifier Text STRINGTABLE { SLA_FRESNEL_PHY_IOR_PRESET "Preset"; SLA_FRESNEL_PHY_IOR_PRESET_CUSTOM "Custom"; SLA_FRESNEL_PHY_IOR_PRESET_ASPHALT "Asphalt"; SLA_FRESNEL_PHY_IOR_PRESET_BEER "Beer"; SLA_FRESNEL_PHY_IOR_PRESET_BRONZE "Bronze"; SLA_FRESNEL_PHY_IOR_PRESET_COPPER "Copper"; SLA_FRESNEL_PHY_IOR_PRESET_DIAMOND "Diamond"; SLA_FRESNEL_PHY_IOR_PRESET_EMERALD "Emerald"; SLA_FRESNEL_PHY_IOR_PRESET_ETHANOL "EthylAlcohol"; SLA_FRESNEL_PHY_IOR_PRESET_GLASS "Glass(Crown)"; SLA_FRESNEL_PHY_IOR_PRESET_HEAVYFLINTGLASS "Glass(HeavyFlint)"; SLA_FRESNEL_PHY_IOR_PRESET_IRON "Iron"; SLA_FRESNEL_PHY_IOR_PRESET_JADE "Jade"; SLA_FRESNEL_PHY_IOR_PRESET_MILK "Milk"; SLA_FRESNEL_PHY_IOR_PRESET_MOONSTONE "Moonstone,Albite"; SLA_FRESNEL_PHY_IOR_PRESET_OIL_VEGETABLE "VegetableOil(50\u00B0C)"; SLA_FRESNEL_PHY_IOR_PRESET_OPAL "Opal"; SLA_FRESNEL_PHY_IOR_PRESET_PEARL "Pearl"; SLA_FRESNEL_PHY_IOR_PRESET_PLASTIC "Plastic"; SLA_FRESNEL_PHY_IOR_PRESET_PET "Plastic(PET)"; SLA_FRESNEL_PHY_IOR_PRESET_PLEXIGLASS "Plexiglass"; SLA_FRESNEL_PHY_IOR_PRESET_RUBBER "Rubber(natural)"; SLA_FRESNEL_PHY_IOR_PRESET_RUBY "Ruby"; SLA_FRESNEL_PHY_IOR_PRESET_SALT "Salt"; SLA_FRESNEL_PHY_IOR_PRESET_SAPPHIRE "Sapphire"; SLA_FRESNEL_PHY_IOR_PRESET_TEFLON "Teflon"; SLA_FRESNEL_PHY_IOR_PRESET_TITANIUM "Titanium"; SLA_FRESNEL_PHY_IOR_PRESET_TOPAZ "Topaz"; SLA_FRESNEL_PHY_IOR_PRESET_WATER "Water(20\u00B0C)"; SLA_FRESNEL_PHY_IOR_PRESET_WATER_ICE "Water(Ice)"; SLA_FRESNEL_PHY_IOR_PRESET_WHISKEY "Whiskey"; SLA_FRESNEL_PHY_IOR_PRESET_WOOD "Wood"; }