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 ID_POINTCREATOR_SHADER_CHANNELSELECT
Element Information
Sample Code
Example code for the id ID_POINTCREATOR_SHADER_CHANNELSELECT in opointcreator_panel
Note that this is not the actual code from the opointcreator_panel file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (opointcreator_panel.res)
LONG ID_POINTCREATOR_SHADER_CHANNELSELECT { FIT_H ; CYCLE { ID_POINTCREATOR_SHADER_CHANNELSELECT_COLOR; ID_POINTCREATOR_SHADER_CHANNELSELECT_LUMINANCE; ID_POINTCREATOR_SHADER_CHANNELSELECT_TRANSPARENCY; ID_POINTCREATOR_SHADER_CHANNELSELECT_ENVIRONMENT; ID_POINTCREATOR_SHADER_CHANNELSELECT_BUMP; ID_POINTCREATOR_SHADER_CHANNELSELECT_ALPHA; ID_POINTCREATOR_SHADER_CHANNELSELECT_DISPLACEMENT; ID_POINTCREATOR_SHADER_CHANNELSELECT_DIFFUSION; ID_POINTCREATOR_SHADER_CHANNELSELECT_NORMAL; ID_POINTCREATOR_SHADER_CHANNELSELECT_DIRECT; } }
Header File Code (opointcreator_panel.h)
#ifndef OPOINTCREATOR_PANEL_H__ #define OPOINTCREATOR_PANEL_H__ enum { ID_POINTCREATOR_SHADER_CHANNELSELECT = 1000, //First ID should start at 1000 ID_POINTCREATOR_SHADER_CHANNELSELECT_COLOR = 1, ID_POINTCREATOR_SHADER_CHANNELSELECT_LUMINANCE = 2, ID_POINTCREATOR_SHADER_CHANNELSELECT_TRANSPARENCY = 3, ID_POINTCREATOR_SHADER_CHANNELSELECT_ENVIRONMENT = 4, ID_POINTCREATOR_SHADER_CHANNELSELECT_BUMP = 5, ID_POINTCREATOR_SHADER_CHANNELSELECT_ALPHA = 6, ID_POINTCREATOR_SHADER_CHANNELSELECT_DISPLACEMENT = 7, ID_POINTCREATOR_SHADER_CHANNELSELECT_DIFFUSION = 8, ID_POINTCREATOR_SHADER_CHANNELSELECT_NORMAL = 9, ID_POINTCREATOR_SHADER_CHANNELSELECT_DIRECT = 10, }; #endif // OPOINTCREATOR_PANEL_H__
String File Code (opointcreator_panel.str)
// C4D-StringResource // Identifier Text STRINGTABLE { ID_POINTCREATOR_SHADER_CHANNELSELECT "Channel"; ID_POINTCREATOR_SHADER_CHANNELSELECT_COLOR "Color"; ID_POINTCREATOR_SHADER_CHANNELSELECT_LUMINANCE "Luminance"; ID_POINTCREATOR_SHADER_CHANNELSELECT_TRANSPARENCY "Transparency"; ID_POINTCREATOR_SHADER_CHANNELSELECT_ENVIRONMENT "Environment"; ID_POINTCREATOR_SHADER_CHANNELSELECT_BUMP "Bump"; ID_POINTCREATOR_SHADER_CHANNELSELECT_ALPHA "Alpha"; ID_POINTCREATOR_SHADER_CHANNELSELECT_DISPLACEMENT "Displacement"; ID_POINTCREATOR_SHADER_CHANNELSELECT_DIFFUSION "Diffusion"; ID_POINTCREATOR_SHADER_CHANNELSELECT_NORMAL "Normal"; ID_POINTCREATOR_SHADER_CHANNELSELECT_DIRECT "CustomShader"; }