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 SKY_POS_DST_SETTINGS
Element Information
Sample Code
Example code for the id SKY_POS_DST_SETTINGS in Oskyshader
Note that this is not the actual code from the Oskyshader file.
This code is just an example to show you how to add a similar control to your own description.
Resource File Code (Oskyshader.res)
LONG SKY_POS_DST_SETTINGS { PARENTCOLLAPSE SKY_POS_CITY_COMBO; CYCLE { SKY_POS_DST_OFF; SKY_POS_DST_LAST_MARCH_LAST_OCT; SKY_POS_DST_SECOND_MARCH_FIRST_NOV; SKY_POS_DST_FIRST_APR_LAST_OCT; SKY_POS_DST_FIRST_OCT_LAST_MARCH; SKY_POS_DST_LAST_OCT_LAST_MARCH; } }
Header File Code (Oskyshader.h)
#ifndef OSKYSHADER_H__ #define OSKYSHADER_H__ enum { SKY_POS_DST_SETTINGS = 1000, //First ID should start at 1000 SKY_POS_DST_OFF = 1, SKY_POS_DST_LAST_MARCH_LAST_OCT = 2, SKY_POS_DST_SECOND_MARCH_FIRST_NOV = 3, SKY_POS_DST_FIRST_APR_LAST_OCT = 4, SKY_POS_DST_FIRST_OCT_LAST_MARCH = 5, SKY_POS_DST_LAST_OCT_LAST_MARCH = 6, }; #endif // OSKYSHADER_H__
String File Code (Oskyshader.str)
// C4D-StringResource // Identifier Text STRINGTABLE { SKY_POS_DST_SETTINGS "DaylightSaving"; SKY_POS_DST_OFF "Off"; SKY_POS_DST_LAST_MARCH_LAST_OCT "LastMarchSundaytoLastOct.Sunday"; SKY_POS_DST_SECOND_MARCH_FIRST_NOV "SecondMarchSundaytoFirstNov.Sunday"; SKY_POS_DST_FIRST_APR_LAST_OCT "FirstAprilSundaytoLastOct.Sunday"; SKY_POS_DST_FIRST_OCT_LAST_MARCH "FirstOctoberSundaytoLastMarchSunday"; SKY_POS_DST_LAST_OCT_LAST_MARCH "LastOctoberSundaytoLastMarchSunday"; }