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.
Description Oskyshader
IDs and information for Oskyshader
Oskyshader
Attributes
- ENGLISH NAME : PhysicalSky
- INCLUDE : Obase
- NAME : Oskyshader
- PATH : sky/description/oskyshader.res
- PLUGIN : sky
- MAXON online help (may not exist): OSKYSHADER
Elements
ID | UI Name | Type | Parameters | Cycle | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SKY_PRESET | LoadSkyPreset... | BUTTON |
|
|||||||||||||||||||||||||
SKY_WEATHERPRESET | LoadWeatherPreset... | BUTTON |
|
|||||||||||||||||||||||||
SKY_TIMEANDLOCATION | TimeandLocation | BOOL |
|
|
||||||||||||||||||||||||
SKY_PHYSICALSKYPAGE | Sky | BOOL | PARENTMSG |
|
||||||||||||||||||||||||
SKY_PHYSICAL_SUN_ENABLE | Sun | BOOL | PARENTMSG |
|
||||||||||||||||||||||||
SKY_PHYSICAL_ATM_ENABLE | Atmosphere | BOOL | PARENTMSG |
|
||||||||||||||||||||||||
SKY_CLOUD_ENABLE | Clouds | BOOL | PARENTMSG |
|
||||||||||||||||||||||||
SKY_DETAILS | Details | BOOL |
|
|
||||||||||||||||||||||||
SKY_VOL_CLOUDS_RENDER | VolumetricClouds | BOOL | PARENTMSG |
|
||||||||||||||||||||||||
SKY_FOG_ENABLE | Fog | BOOL | PARENTMSG |
|
||||||||||||||||||||||||
SKY_RAINBOW_RENDER | Rainbow | BOOL | PARENTMSG |
|
||||||||||||||||||||||||
SKY_BEAMS_ENABLE | Sunbeams | BOOL | PARENTMSG |
|
||||||||||||||||||||||||
SKY_DATE_TIME | Time | DATETIME |
|
|
||||||||||||||||||||||||
SKY_TIME_NOW | CurrentTime | BOOL |
|
|
||||||||||||||||||||||||
SKY_DATE_TODAY | Today | BOOL |
|
|
||||||||||||||||||||||||
SKY_DATE_ANIMATE | AnimateDate | BOOL |
|
|
||||||||||||||||||||||||
SKY_TIME_ANIMATE | AnimateTime | BOOL |
|
|
||||||||||||||||||||||||
SKY_POS_CITY | x | STRING | HIDDEN |
|
||||||||||||||||||||||||
SKY_POS_CITY_COMBO | City | LONG |
|
|
||||||||||||||||||||||||
SKY_POS_LATITUDE | Latitude | REAL |
|
|
||||||||||||||||||||||||
SKY_POS_LONGITUDE | Longitude | REAL |
|
|
||||||||||||||||||||||||
SKY_POS_TIMEZONE | TimeZone | LONG | PARENTCOLLAPSE |
|
||||||||||||||||||||||||
SKY_POS_DST_SETTINGS | DaylightSaving | LONG | PARENTCOLLAPSE |
|
||||||||||||||||||||||||
SKY_POS_TIME_ZONE | TimeZoneDiff. | REAL | PARENTCOLLAPSE |
|
||||||||||||||||||||||||
SKY_POS_DST_TIME_ZONE | DSTimeZone | REAL | PARENTCOLLAPSE |
|
||||||||||||||||||||||||
SKY_PHYSICAL_SKY_ENABLE | PhysicalSky | BOOL |
|
|||||||||||||||||||||||||
SKY_REAL_SKY_SKY_HORIZON | HorizonLine | BOOL |
|
|||||||||||||||||||||||||
SKY_REAL_SKY_SKY_COLOR_WARMNESS | ColorWarmth | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SKY_INTENSITY | Intensity | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SKY_INTENSITY_NIGHT | NightIntensityRatio | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SKY_SATURATION | SaturationCorrection | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SKY_HUE | HueCorrection | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SKY_GAMMA | GammaCorrection | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SKY_SEEN_INTENSITY | AsSeenIntensity | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SKY_DITHER | Dithering | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_TURBIDITY | Turbidity | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_OZONE | Ozone(cm) | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_USER_HORIZON | CustomHorizon | BOOL |
|
|||||||||||||||||||||||||
SKY_GENERAL_USER_HORIZON_MAX_ALT | Max.Altitude | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_USER_COLOR | Color | GRADIENT |
|
|
||||||||||||||||||||||||
SKY_GENERAL_STRENGTH | AtmosphereStrength | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_MOISTURE | EffectsTurbidity | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_HORIZON_START | HorizonStart | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_EARTH_RADIUS | EarthRadius(km) | REAL | MIN |
|
||||||||||||||||||||||||
SKY_REAL_SKY_SUN_COLOR | PreviewColor | COLOR | ANIM |
|
||||||||||||||||||||||||
SKY_REAL_SKY_SUN_INTENSITY | Intensity | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SUN_SATURATION | SaturationCorrection | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SUN_HUE | HueCorrection | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SUN_GAMMA | GammaCorrection | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SUN_SIZE_RATIO | SizeRatio | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SUN_SEEN_INTENSITY | AsSeenIntensity | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_CHANGE_SUN_COL | CustomColor | BOOL |
|
|||||||||||||||||||||||||
SKY_GENERAL_SUN_COLOR | Color | COLOR | PARENTID |
|
||||||||||||||||||||||||
SKY_GENERAL_LENSFLARES | Lensflares | BOOL | PARENTCOLLAPSE |
|
||||||||||||||||||||||||
SKY_GENERAL_MAX_FLARE_GLOW | GlowIntensity | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_MAX_FLARE_REFL | FlareIntensity | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_SUN_DIST_SCALE | DistanceScale | REAL |
|
|
||||||||||||||||||||||||
SKY_OBJECT_SUN_OBJECT | CustomSunObject | LINK |
|
|||||||||||||||||||||||||
SKY_REAL_SKY_SUN_SHADOW_TYPE | ShadowType | LONG |
|
|||||||||||||||||||||||||
SKY_REAL_SKY_SUN_SHADOW_DENSITY | Density | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SUN_SHADOW_COLOR | ShadowColor | COLOR |
|
|||||||||||||||||||||||||
SKY_REAL_SKY_SUN_SHADOW_TRANSPARENCY | Transparency | BOOL |
|
|||||||||||||||||||||||||
SKY_REAL_SKY_SUN_SAMPLING_QUALITY | ShadowAccuracy | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MIN | MinimumSamples | LONG |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MAX | MaximumSamples | LONG |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_ATM_INTENSITY | Intensity | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_ATM_HORIZON | HorizonFade | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_ATM_SATURATION | SaturationCorrection | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_ATM_HUE | HueCorrection | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_ATM_GAMMA | GammaCorrection | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_ATM_SCALE_RATIO | WorldScaleRatio | REAL |
|
|
||||||||||||||||||||||||
SKY_REAL_SKY_ATM_DITHER | Dithering | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_ROLLOFF | Rolloff | GRADIENT |
|
|
||||||||||||||||||||||||
SKY_CLOUDS_SHADOW | CastShadows | BOOL |
|
|||||||||||||||||||||||||
SKY_CLOUD_1_ACTIVE | Layer1 | BOOL |
|
|||||||||||||||||||||||||
SKY_CLOUD_2_ACTIVE | Layer2 | BOOL |
|
|||||||||||||||||||||||||
SKY_CLOUD_3_ACTIVE | Layer3 | BOOL |
|
|||||||||||||||||||||||||
SKY_CLOUD_4_ACTIVE | Layer4 | BOOL |
|
|||||||||||||||||||||||||
SKY_CLOUD_5_ACTIVE | Layer5 | BOOL |
|
|||||||||||||||||||||||||
SKY_CLOUD_6_ACTIVE | Layer6 | BOOL |
|
|||||||||||||||||||||||||
SKY_CLOUD_1_NOISE | Noise1 | LONG | CUSTOMGUI |
|
||||||||||||||||||||||||
SKY_CLOUD_1_SAVE_PRESET | SaveasPreset... | BUTTON |
|
|||||||||||||||||||||||||
SKY_CLOUD_1_COLOR | Color1 | COLOR |
|
|||||||||||||||||||||||||
SKY_CLOUD_1_HEIGHT | Height1 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_1_PREVIEW | MATPREVIEW | OPEN |
|
|||||||||||||||||||||||||
SKY_CLOUD_1_DENSITY | Density1 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_1_COVERAGE | Coverage1 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_1_THICKNESS | Thickness1 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_1_TRANSPARENCY | Transparency1 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_1_SPEED | Anim.Speed1 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_1_OFFSET | NoiseOffset1 | REAL |
|
|||||||||||||||||||||||||
SKY_CLOUD_1_SCALE_NS | ScaleN-S1 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_1_SCALE_WE | ScaleW-E1 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_1_MOVE_NS | Pos.N-S1 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_1_MOVE_WE | Pos.W-E1 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_2_NOISE | Noise2 | LONG | CUSTOMGUI |
|
||||||||||||||||||||||||
SKY_CLOUD_2_SAVE_PRESET | SaveasPreset... | BUTTON |
|
|||||||||||||||||||||||||
SKY_CLOUD_2_COLOR | Color2 | COLOR |
|
|||||||||||||||||||||||||
SKY_CLOUD_2_HEIGHT | Height2 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_2_PREVIEW | MATPREVIEW | OPEN |
|
|||||||||||||||||||||||||
SKY_CLOUD_2_DENSITY | Density2 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_2_COVERAGE | Coverage2 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_2_THICKNESS | Thickness2 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_2_TRANSPARENCY | Transparency2 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_2_SPEED | Anim.Speed2 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_2_OFFSET | NoiseOffset2 | REAL |
|
|||||||||||||||||||||||||
SKY_CLOUD_2_SCALE_NS | ScaleN-S2 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_2_SCALE_WE | ScaleW-E2 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_2_MOVE_NS | Pos.N-S2 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_2_MOVE_WE | Pos.W-E2 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_3_NOISE | Noise3 | LONG | CUSTOMGUI |
|
||||||||||||||||||||||||
SKY_CLOUD_3_SAVE_PRESET | SaveasPreset... | BUTTON |
|
|||||||||||||||||||||||||
SKY_CLOUD_3_COLOR | Color3 | COLOR |
|
|||||||||||||||||||||||||
SKY_CLOUD_3_HEIGHT | Height3 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_3_PREVIEW | MATPREVIEW | OPEN |
|
|||||||||||||||||||||||||
SKY_CLOUD_3_DENSITY | Density3 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_3_COVERAGE | Coverage3 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_3_THICKNESS | Thickness3 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_3_TRANSPARENCY | Transparency3 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_3_SPEED | Anim.Speed3 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_3_OFFSET | NoiseOffset3 | REAL |
|
|||||||||||||||||||||||||
SKY_CLOUD_3_SCALE_NS | ScaleN-S3 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_3_SCALE_WE | ScaleW-E3 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_3_MOVE_NS | Pos.N-S3 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_3_MOVE_WE | Pos.W-E3 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_4_NOISE | Noise4 | LONG | CUSTOMGUI |
|
||||||||||||||||||||||||
SKY_CLOUD_4_SAVE_PRESET | SaveasPreset... | BUTTON |
|
|||||||||||||||||||||||||
SKY_CLOUD_4_COLOR | Color4 | COLOR |
|
|||||||||||||||||||||||||
SKY_CLOUD_4_HEIGHT | Height4 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_4_PREVIEW | MATPREVIEW | OPEN |
|
|||||||||||||||||||||||||
SKY_CLOUD_4_DENSITY | Density4 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_4_COVERAGE | Coverage4 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_4_THICKNESS | Thickness4 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_4_TRANSPARENCY | Transparency4 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_4_SPEED | Anim.Speed4 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_4_OFFSET | NoiseOffset4 | REAL |
|
|||||||||||||||||||||||||
SKY_CLOUD_4_SCALE_NS | ScaleN-S4 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_4_SCALE_WE | ScaleW-E4 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_4_MOVE_NS | Pos.N-S4 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_4_MOVE_WE | Pos.W-E4 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_5_NOISE | Noise5 | LONG | CUSTOMGUI |
|
||||||||||||||||||||||||
SKY_CLOUD_5_SAVE_PRESET | SaveasPreset... | BUTTON |
|
|||||||||||||||||||||||||
SKY_CLOUD_5_COLOR | Color5 | COLOR |
|
|||||||||||||||||||||||||
SKY_CLOUD_5_HEIGHT | Height5 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_5_PREVIEW | MATPREVIEW | OPEN |
|
|||||||||||||||||||||||||
SKY_CLOUD_5_DENSITY | Density5 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_5_COVERAGE | Coverage5 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_5_THICKNESS | Thickness5 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_5_TRANSPARENCY | Transparency5 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_5_SPEED | Anim.Speed5 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_5_OFFSET | NoiseOffset5 | REAL |
|
|||||||||||||||||||||||||
SKY_CLOUD_5_SCALE_NS | ScaleN-S5 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_5_SCALE_WE | ScaleW-E5 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_5_MOVE_NS | Pos.N-S5 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_5_MOVE_WE | Pos.W-E5 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_6_NOISE | Noise6 | LONG | CUSTOMGUI |
|
||||||||||||||||||||||||
SKY_CLOUD_6_SAVE_PRESET | SaveasPreset... | BUTTON |
|
|||||||||||||||||||||||||
SKY_CLOUD_6_COLOR | Color6 | COLOR |
|
|||||||||||||||||||||||||
SKY_CLOUD_6_HEIGHT | Height6 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_6_PREVIEW | MATPREVIEW | OPEN |
|
|||||||||||||||||||||||||
SKY_CLOUD_6_DENSITY | Density6 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_6_COVERAGE | Coverage6 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_6_THICKNESS | Thickness6 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_6_TRANSPARENCY | Transparency6 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_6_SPEED | Anim.Speed6 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_6_OFFSET | NoiseOffset6 | REAL |
|
|||||||||||||||||||||||||
SKY_CLOUD_6_SCALE_NS | ScaleN-S6 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_6_SCALE_WE | ScaleW-E6 | REAL |
|
|
||||||||||||||||||||||||
SKY_CLOUD_6_MOVE_NS | Pos.N-S6 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_CLOUD_6_MOVE_WE | Pos.W-E6 | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_ASTRO_MOON_SHOW | ShowMoon | BOOL | PARENTCOLLAPSE |
|
||||||||||||||||||||||||
SKY_GENERAL_SCALE_MOON | Scale | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_MOON_BRIGHT | BrightIntensity | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_MOON_DARK | DarkIntensity | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_MOON_DIST_SCALE | DistanceScale | REAL |
|
|
||||||||||||||||||||||||
SKY_OBJECT_MOON_OBJECT | CustomMoonObject | LINK | PARENTCOLLAPSE |
|
||||||||||||||||||||||||
SKY_ASTRO_SHOW_STARS | ShowStars | BOOL | PARENTCOLLAPSE |
|
||||||||||||||||||||||||
SKY_GENERAL_MIN_MAG | MinMagnitude | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_RESIZE_STARS | ResizeStarswithMagnitude | BOOL | PARENTCOLLAPSE |
|
||||||||||||||||||||||||
SKY_GENERAL_LIGHTEN_UP_STARS | BrightenStars | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_STAR_RADIUS | StarRadius | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_SHOW_CONSTELLATIONS | ShowConstellations | BOOL | PARENTCOLLAPSE |
|
||||||||||||||||||||||||
SKY_GENERAL_CONSTELLATION_COLOR | Constellationcolor | COLOR |
|
|
||||||||||||||||||||||||
SKY_GENERAL_GRID_WIDTH | GridWidth | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_GRID_COLOR | GridColor | COLOR | PARENTCOLLAPSE |
|
||||||||||||||||||||||||
SKY_ASTRO_PLANETS_SHOW | ShowPlanets | BOOL |
|
|||||||||||||||||||||||||
SKY_GENERAL_SKY_DOME | SkyDomeAmbientLight | BOOL |
|
|||||||||||||||||||||||||
SKY_GENERAL_MERGE_SUN | MergeSkyandSun | BOOL |
|
|||||||||||||||||||||||||
SKY_MATERIAL_GLOBALILLUM_GENERATE | GIGenerate | BOOL |
|
|||||||||||||||||||||||||
SKY_MATERIAL_GLOBALILLUM_GENERATE_STRENGTH | GIGenerateStrength | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_GI_SATURATION | Saturation | REAL |
|
|
||||||||||||||||||||||||
SKY_GENERAL_GI_INFLUENCE | CloudInfluence | REAL |
|
|
||||||||||||||||||||||||
SKY_EXPRESSION_PRIORITY | Priority | PRIORITY |
|
|
||||||||||||||||||||||||
SKY_MATERIAL_PREVIEWSIZE | TexturePreviewSize | LONG |
|
|||||||||||||||||||||||||
SKY_SHOW_HUD | ShowLocationHUD | BOOL | ANIM |
|
||||||||||||||||||||||||
SKY_UPDATE_EDITOR | UpdateEditor | BOOL |
|
|||||||||||||||||||||||||
SKY_SHOW_CLOUD_BOX | ShowBoundingBox | BOOL |
|
|||||||||||||||||||||||||
SKY_CLOUD_EDITOR_COLOR | EditorColor | COLOR |
|
|||||||||||||||||||||||||
SKY_CLOUD_EDITOR_QUALITY | EditorQuality | REAL |
|
|
||||||||||||||||||||||||
SKY_VOL_CLOUDS_ADJUST_ALTITUDE | AdjustAltitude | BOOL |
|
|||||||||||||||||||||||||
SKY_VOL_CLOUDS_RECEIVE_SHADOWS | ReceiveShadows | BOOL |
|
|||||||||||||||||||||||||
SKY_VOL_CLOUDS_SAMPLE_SIZE | SampleSize | REAL |
|
|
||||||||||||||||||||||||
SKY_VOL_CLOUDS_EDGE_NOISE_NOISE | EdgeNoise | LONG | CUSTOMGUI |
|
||||||||||||||||||||||||
SKY_VOL_CLOUDS_EDGE_NOISE_CONTRAST | Contrast | REAL |
|
|
||||||||||||||||||||||||
SKY_VOL_CLOUDS_EDGE_NOISE_SCALE | Scale | REAL |
|
|
||||||||||||||||||||||||
SKY_VOL_CLOUDS_EDGE_NOISE_SPEED | NoiseSpeed | REAL |
|
|
||||||||||||||||||||||||
SKY_VOL_CLOUDS_LIGHT_LIST | Lights | IN_EXCLUDE |
|
|
||||||||||||||||||||||||
SKY_FOG_COLOR | Color | COLOR |
|
|||||||||||||||||||||||||
SKY_FOG_START | StartHeight | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_FOG_END | EndHeight | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_FOG_MAXDIST | Max.Distance | REAL |
|
|
||||||||||||||||||||||||
SKY_FOG_DENSITY | Density | REAL |
|
|
||||||||||||||||||||||||
SKY_FOG_DENSITY_DISTRIB | DensityDistribution | SPLINE |
|
|
||||||||||||||||||||||||
SKY_FOG_NOISE | Noise | LONG | CUSTOMGUI |
|
||||||||||||||||||||||||
SKY_FOG_NOISE_STRENGTH | NoiseStrength | REAL |
|
|
||||||||||||||||||||||||
SKY_FOG_SCALE | Scale | VECTOR |
|
|
||||||||||||||||||||||||
SKY_FOG_MOVEMENT | Movement | VECTOR | UNIT |
|
||||||||||||||||||||||||
SKY_FOG_SAMPLE_SIZE | SampleSize | REAL |
|
|
||||||||||||||||||||||||
SKY_FOG_ANIMATION_SPEED | AnimationSpeed | REAL |
|
|
||||||||||||||||||||||||
SKY_FOG_SHADOW_INTENSITY | ShadowIntensity | REAL |
|
|
||||||||||||||||||||||||
SKY_FOG_ILLUM_INTENSITY | IlluminationIntensity | REAL |
|
|
||||||||||||||||||||||||
SKY_RAINBOW_MAX_STRENGTH | Max.Strength | REAL |
|
|
||||||||||||||||||||||||
SKY_RAINBOW_TURBIDITY_DEP | TurbidityDependent | BOOL |
|
|||||||||||||||||||||||||
SKY_RAINBOW_TURBIDITY_THRESHOLD_MIN | Min.TurbidityThreshold | REAL |
|
|
||||||||||||||||||||||||
SKY_RAINBOW_TURBIDITY_THRESHOLD_MAX | Max.TurbidityThreshold | REAL |
|
|
||||||||||||||||||||||||
SKY_RAINBOW_1_INNER | FirstRainbowInnerAngle | REAL |
|
|
||||||||||||||||||||||||
SKY_RAINBOW_1_OUTER | FirstRainbowOuterAngle | REAL |
|
|
||||||||||||||||||||||||
SKY_RAINBOW_2_INNER | SecondaryRainbowInnerAngle | REAL |
|
|
||||||||||||||||||||||||
SKY_RAINBOW_2_OUTER | SecondaryRainbowOuterAngle | REAL |
|
|
||||||||||||||||||||||||
SKY_RAINBOW_START_CLIP | StartClipping | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_RAINBOW_END_CLIP | EndClipping | REAL | UNIT |
|
||||||||||||||||||||||||
SKY_BEAMS_TURBIDITY_DEPENDENT | TurbidityDependent | BOOL |
|
|||||||||||||||||||||||||
SKY_BEAMS_INTENS | Intensity | REAL |
|
|
||||||||||||||||||||||||
SKY_BEAMS_MIN_BRIGHTNESS | Min.Brightness | REAL |
|
|
||||||||||||||||||||||||
SKY_BEAMS_START | StartDistance | REAL |
|
|
||||||||||||||||||||||||
SKY_BEAMS_END | EndDistance | REAL |
|
|
||||||||||||||||||||||||
SKY_BEAMS_SAMPLE_DIST | SampleDistance | REAL |
|
|
||||||||||||||||||||||||
SKY_SKY_OBJECTS | SkyObjects | SKY_OBJECTS |
|
|
||||||||||||||||||||||||
SKY_SKY_OBECT_PLACE | PlaceObject... | BUTTON |
|
Example Code
The following code does not use the correct values when setting the data. You should check directly in C4D for the correct values that you should use in place of the ones that are shown. This code is just to show you how to access the values for getting and setting the parameters.
Python
import c4d from c4d import gui def main(): obj = c4d.BaseObject(c4d.Oskyshader) doc.InsertObject(obj) c4d.EventAdd(c4d.EVENT_FORCEREDRAW) #You can set parameters two different ways. #First way obj[c4d.SKY_TIMEANDLOCATION] = True obj[c4d.SKY_PHYSICALSKYPAGE] = True obj[c4d.SKY_PHYSICAL_SUN_ENABLE] = True obj[c4d.SKY_PHYSICAL_ATM_ENABLE] = True obj[c4d.SKY_CLOUD_ENABLE] = True obj[c4d.SKY_DETAILS] = True obj[c4d.SKY_VOL_CLOUDS_RENDER] = True obj[c4d.SKY_FOG_ENABLE] = True obj[c4d.SKY_RAINBOW_RENDER] = True obj[c4d.SKY_BEAMS_ENABLE] = True obj[c4d.] = True obj[c4d.SKY_TIME_NOW] = True obj[c4d.SKY_DATE_TODAY] = True obj[c4d.SKY_DATE_ANIMATE] = True obj[c4d.SKY_TIME_ANIMATE] = True obj[c4d.SKY_POS_CITY] = "Hello World" obj[c4d.SKY_POS_CITY_COMBO] = 1 obj[c4d.SKY_POS_LATITUDE] = 0.1 obj[c4d.SKY_POS_LONGITUDE] = 0.1 obj[c4d.SKY_POS_TIMEZONE] = c4d.SKY_POS_TZ_OS obj[c4d.SKY_POS_DST_SETTINGS] = c4d.SKY_POS_DST_OFF obj[c4d.SKY_POS_TIME_ZONE] = 0.1 obj[c4d.SKY_POS_DST_TIME_ZONE] = 0.1 obj[c4d.SKY_PHYSICAL_SKY_ENABLE] = True obj[c4d.SKY_REAL_SKY_SKY_HORIZON] = True obj[c4d.SKY_REAL_SKY_SKY_COLOR_WARMNESS] = 0.1 obj[c4d.SKY_REAL_SKY_SKY_INTENSITY] = 0.1 obj[c4d.SKY_REAL_SKY_SKY_INTENSITY_NIGHT] = 0.1 obj[c4d.SKY_REAL_SKY_SKY_SATURATION] = 0.1 obj[c4d.SKY_REAL_SKY_SKY_HUE] = 0.1 obj[c4d.SKY_REAL_SKY_SKY_GAMMA] = 0.1 obj[c4d.SKY_REAL_SKY_SKY_SEEN_INTENSITY] = 0.1 obj[c4d.SKY_REAL_SKY_SKY_DITHER] = 0.1 obj[c4d.SKY_REAL_SKY_TURBIDITY] = 0.1 obj[c4d.SKY_REAL_SKY_OZONE] = 0.1 obj[c4d.SKY_GENERAL_USER_HORIZON] = True obj[c4d.SKY_GENERAL_USER_HORIZON_MAX_ALT] = 0.1 obj[c4d.SKY_GENERAL_STRENGTH] = 0.1 obj[c4d.SKY_GENERAL_MOISTURE] = 0.1 obj[c4d.SKY_GENERAL_HORIZON_START] = 0.1 obj[c4d.SKY_GENERAL_EARTH_RADIUS] = 0.1 obj[c4d.SKY_REAL_SKY_SUN_INTENSITY] = 0.1 obj[c4d.SKY_REAL_SKY_SUN_SATURATION] = 0.1 obj[c4d.SKY_REAL_SKY_SUN_HUE] = 0.1 obj[c4d.SKY_REAL_SKY_SUN_GAMMA] = 0.1 obj[c4d.SKY_REAL_SKY_SUN_SIZE_RATIO] = 0.1 obj[c4d.SKY_REAL_SKY_SUN_SEEN_INTENSITY] = 0.1 obj[c4d.SKY_GENERAL_CHANGE_SUN_COL] = True obj[c4d.SKY_GENERAL_LENSFLARES] = True obj[c4d.SKY_GENERAL_MAX_FLARE_GLOW] = 0.1 obj[c4d.SKY_GENERAL_MAX_FLARE_REFL] = 0.1 obj[c4d.SKY_GENERAL_SUN_DIST_SCALE] = 0.1 obj[c4d.SKY_REAL_SKY_SUN_SHADOW_TYPE] = c4d.SKY_SUN_SHADOW_TYPE_NONE obj[c4d.SKY_REAL_SKY_SUN_SHADOW_DENSITY] = 0.1 obj[c4d.SKY_REAL_SKY_SUN_SHADOW_TRANSPARENCY] = True obj[c4d.SKY_REAL_SKY_SUN_SAMPLING_QUALITY] = 0.1 obj[c4d.SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MIN] = 1 obj[c4d.SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MAX] = 1 obj[c4d.SKY_REAL_SKY_ATM_INTENSITY] = 0.1 obj[c4d.SKY_REAL_SKY_ATM_HORIZON] = 0.1 obj[c4d.SKY_REAL_SKY_ATM_SATURATION] = 0.1 obj[c4d.SKY_REAL_SKY_ATM_HUE] = 0.1 obj[c4d.SKY_REAL_SKY_ATM_GAMMA] = 0.1 obj[c4d.SKY_REAL_SKY_ATM_SCALE_RATIO] = 0.1 obj[c4d.SKY_REAL_SKY_ATM_DITHER] = 0.1 obj[c4d.SKY_CLOUDS_SHADOW] = True obj[c4d.SKY_CLOUD_1_ACTIVE] = True obj[c4d.SKY_CLOUD_2_ACTIVE] = True obj[c4d.SKY_CLOUD_3_ACTIVE] = True obj[c4d.SKY_CLOUD_4_ACTIVE] = True obj[c4d.SKY_CLOUD_5_ACTIVE] = True obj[c4d.SKY_CLOUD_6_ACTIVE] = True obj[c4d.SKY_CLOUD_1_NOISE] = 1 obj[c4d.SKY_CLOUD_1_HEIGHT] = 0.1 obj[c4d.SKY_CLOUD_1_DENSITY] = 0.1 obj[c4d.SKY_CLOUD_1_COVERAGE] = 0.1 obj[c4d.SKY_CLOUD_1_THICKNESS] = 0.1 obj[c4d.SKY_CLOUD_1_TRANSPARENCY] = 0.1 obj[c4d.SKY_CLOUD_1_SPEED] = 0.1 obj[c4d.SKY_CLOUD_1_OFFSET] = 0.1 obj[c4d.SKY_CLOUD_1_SCALE_NS] = 0.1 obj[c4d.SKY_CLOUD_1_SCALE_WE] = 0.1 obj[c4d.SKY_CLOUD_1_MOVE_NS] = 0.1 obj[c4d.SKY_CLOUD_1_MOVE_WE] = 0.1 obj[c4d.SKY_CLOUD_2_NOISE] = 1 obj[c4d.SKY_CLOUD_2_HEIGHT] = 0.1 obj[c4d.SKY_CLOUD_2_DENSITY] = 0.1 obj[c4d.SKY_CLOUD_2_COVERAGE] = 0.1 obj[c4d.SKY_CLOUD_2_THICKNESS] = 0.1 obj[c4d.SKY_CLOUD_2_TRANSPARENCY] = 0.1 obj[c4d.SKY_CLOUD_2_SPEED] = 0.1 obj[c4d.SKY_CLOUD_2_OFFSET] = 0.1 obj[c4d.SKY_CLOUD_2_SCALE_NS] = 0.1 obj[c4d.SKY_CLOUD_2_SCALE_WE] = 0.1 obj[c4d.SKY_CLOUD_2_MOVE_NS] = 0.1 obj[c4d.SKY_CLOUD_2_MOVE_WE] = 0.1 obj[c4d.SKY_CLOUD_3_NOISE] = 1 obj[c4d.SKY_CLOUD_3_HEIGHT] = 0.1 obj[c4d.SKY_CLOUD_3_DENSITY] = 0.1 obj[c4d.SKY_CLOUD_3_COVERAGE] = 0.1 obj[c4d.SKY_CLOUD_3_THICKNESS] = 0.1 obj[c4d.SKY_CLOUD_3_TRANSPARENCY] = 0.1 obj[c4d.SKY_CLOUD_3_SPEED] = 0.1 obj[c4d.SKY_CLOUD_3_OFFSET] = 0.1 obj[c4d.SKY_CLOUD_3_SCALE_NS] = 0.1 obj[c4d.SKY_CLOUD_3_SCALE_WE] = 0.1 obj[c4d.SKY_CLOUD_3_MOVE_NS] = 0.1 obj[c4d.SKY_CLOUD_3_MOVE_WE] = 0.1 obj[c4d.SKY_CLOUD_4_NOISE] = 1 obj[c4d.SKY_CLOUD_4_HEIGHT] = 0.1 obj[c4d.SKY_CLOUD_4_DENSITY] = 0.1 obj[c4d.SKY_CLOUD_4_COVERAGE] = 0.1 obj[c4d.SKY_CLOUD_4_THICKNESS] = 0.1 obj[c4d.SKY_CLOUD_4_TRANSPARENCY] = 0.1 obj[c4d.SKY_CLOUD_4_SPEED] = 0.1 obj[c4d.SKY_CLOUD_4_OFFSET] = 0.1 obj[c4d.SKY_CLOUD_4_SCALE_NS] = 0.1 obj[c4d.SKY_CLOUD_4_SCALE_WE] = 0.1 obj[c4d.SKY_CLOUD_4_MOVE_NS] = 0.1 obj[c4d.SKY_CLOUD_4_MOVE_WE] = 0.1 obj[c4d.SKY_CLOUD_5_NOISE] = 1 obj[c4d.SKY_CLOUD_5_HEIGHT] = 0.1 obj[c4d.SKY_CLOUD_5_DENSITY] = 0.1 obj[c4d.SKY_CLOUD_5_COVERAGE] = 0.1 obj[c4d.SKY_CLOUD_5_THICKNESS] = 0.1 obj[c4d.SKY_CLOUD_5_TRANSPARENCY] = 0.1 obj[c4d.SKY_CLOUD_5_SPEED] = 0.1 obj[c4d.SKY_CLOUD_5_OFFSET] = 0.1 obj[c4d.SKY_CLOUD_5_SCALE_NS] = 0.1 obj[c4d.SKY_CLOUD_5_SCALE_WE] = 0.1 obj[c4d.SKY_CLOUD_5_MOVE_NS] = 0.1 obj[c4d.SKY_CLOUD_5_MOVE_WE] = 0.1 obj[c4d.SKY_CLOUD_6_NOISE] = 1 obj[c4d.SKY_CLOUD_6_HEIGHT] = 0.1 obj[c4d.SKY_CLOUD_6_DENSITY] = 0.1 obj[c4d.SKY_CLOUD_6_COVERAGE] = 0.1 obj[c4d.SKY_CLOUD_6_THICKNESS] = 0.1 obj[c4d.SKY_CLOUD_6_TRANSPARENCY] = 0.1 obj[c4d.SKY_CLOUD_6_SPEED] = 0.1 obj[c4d.SKY_CLOUD_6_OFFSET] = 0.1 obj[c4d.SKY_CLOUD_6_SCALE_NS] = 0.1 obj[c4d.SKY_CLOUD_6_SCALE_WE] = 0.1 obj[c4d.SKY_CLOUD_6_MOVE_NS] = 0.1 obj[c4d.SKY_CLOUD_6_MOVE_WE] = 0.1 obj[c4d.SKY_ASTRO_MOON_SHOW] = True obj[c4d.SKY_GENERAL_SCALE_MOON] = 0.1 obj[c4d.SKY_GENERAL_MOON_BRIGHT] = 0.1 obj[c4d.SKY_GENERAL_MOON_DARK] = 0.1 obj[c4d.SKY_GENERAL_MOON_DIST_SCALE] = 0.1 obj[c4d.SKY_ASTRO_SHOW_STARS] = True obj[c4d.SKY_GENERAL_MIN_MAG] = 0.1 obj[c4d.SKY_GENERAL_RESIZE_STARS] = True obj[c4d.SKY_GENERAL_LIGHTEN_UP_STARS] = 0.1 obj[c4d.SKY_GENERAL_STAR_RADIUS] = 0.1 obj[c4d.SKY_GENERAL_SHOW_CONSTELLATIONS] = True obj[c4d.SKY_GENERAL_GRID_WIDTH] = 0.1 obj[c4d.SKY_ASTRO_PLANETS_SHOW] = True obj[c4d.SKY_GENERAL_SKY_DOME] = True obj[c4d.SKY_GENERAL_MERGE_SUN] = True obj[c4d.SKY_MATERIAL_GLOBALILLUM_GENERATE] = True obj[c4d.SKY_MATERIAL_GLOBALILLUM_GENERATE_STRENGTH] = 0.1 obj[c4d.SKY_GENERAL_GI_SATURATION] = 0.1 obj[c4d.SKY_GENERAL_GI_INFLUENCE] = 0.1 obj[c4d.SKY_MATERIAL_PREVIEWSIZE] = c4d.SKY_MATERIAL_PREVIEWSIZE_DEF obj[c4d.SKY_SHOW_HUD] = True obj[c4d.SKY_UPDATE_EDITOR] = True obj[c4d.SKY_SHOW_CLOUD_BOX] = True obj[c4d.SKY_CLOUD_EDITOR_QUALITY] = 0.1 obj[c4d.SKY_VOL_CLOUDS_ADJUST_ALTITUDE] = True obj[c4d.SKY_VOL_CLOUDS_RECEIVE_SHADOWS] = True obj[c4d.SKY_VOL_CLOUDS_SAMPLE_SIZE] = 0.1 obj[c4d.SKY_VOL_CLOUDS_EDGE_NOISE_NOISE] = 1 obj[c4d.SKY_VOL_CLOUDS_EDGE_NOISE_CONTRAST] = 0.1 obj[c4d.SKY_VOL_CLOUDS_EDGE_NOISE_SCALE] = 0.1 obj[c4d.SKY_VOL_CLOUDS_EDGE_NOISE_SPEED] = 0.1 obj[c4d.SKY_FOG_START] = 0.1 obj[c4d.SKY_FOG_END] = 0.1 obj[c4d.SKY_FOG_MAXDIST] = 0.1 obj[c4d.SKY_FOG_DENSITY] = 0.1 obj[c4d.SKY_FOG_NOISE] = 1 obj[c4d.SKY_FOG_NOISE_STRENGTH] = 0.1 obj[c4d.SKY_FOG_SCALE] = c4d.Vector(1.0,1.0,1.0) obj[c4d.SKY_FOG_MOVEMENT] = c4d.Vector(1.0,1.0,1.0) obj[c4d.SKY_FOG_SAMPLE_SIZE] = 0.1 obj[c4d.SKY_FOG_ANIMATION_SPEED] = 0.1 obj[c4d.SKY_FOG_SHADOW_INTENSITY] = 0.1 obj[c4d.SKY_FOG_ILLUM_INTENSITY] = 0.1 obj[c4d.SKY_RAINBOW_MAX_STRENGTH] = 0.1 obj[c4d.SKY_RAINBOW_TURBIDITY_DEP] = True obj[c4d.SKY_RAINBOW_TURBIDITY_THRESHOLD_MIN] = 0.1 obj[c4d.SKY_RAINBOW_TURBIDITY_THRESHOLD_MAX] = 0.1 obj[c4d.SKY_RAINBOW_1_INNER] = 0.1 obj[c4d.SKY_RAINBOW_1_OUTER] = 0.1 obj[c4d.SKY_RAINBOW_2_INNER] = 0.1 obj[c4d.SKY_RAINBOW_2_OUTER] = 0.1 obj[c4d.SKY_RAINBOW_START_CLIP] = 0.1 obj[c4d.SKY_RAINBOW_END_CLIP] = 0.1 obj[c4d.SKY_BEAMS_TURBIDITY_DEPENDENT] = True obj[c4d.SKY_BEAMS_INTENS] = 0.1 obj[c4d.SKY_BEAMS_MIN_BRIGHTNESS] = 0.1 obj[c4d.SKY_BEAMS_START] = 0.1 obj[c4d.SKY_BEAMS_END] = 0.1 obj[c4d.SKY_BEAMS_SAMPLE_DIST] = 0.1 #Second way, using the base container. bc = obj.GetDataInstance() bc.SetBool(c4d.SKY_TIMEANDLOCATION,True) bc.SetBool(c4d.SKY_PHYSICALSKYPAGE,True) bc.SetBool(c4d.SKY_PHYSICAL_SUN_ENABLE,True) bc.SetBool(c4d.SKY_PHYSICAL_ATM_ENABLE,True) bc.SetBool(c4d.SKY_CLOUD_ENABLE,True) bc.SetBool(c4d.SKY_DETAILS,True) bc.SetBool(c4d.SKY_VOL_CLOUDS_RENDER,True) bc.SetBool(c4d.SKY_FOG_ENABLE,True) bc.SetBool(c4d.SKY_RAINBOW_RENDER,True) bc.SetBool(c4d.SKY_BEAMS_ENABLE,True) bc.SetBool(c4d.,True) bc.SetBool(c4d.SKY_TIME_NOW,True) bc.SetBool(c4d.SKY_DATE_TODAY,True) bc.SetBool(c4d.SKY_DATE_ANIMATE,True) bc.SetBool(c4d.SKY_TIME_ANIMATE,True) bc.SetString(c4d.SKY_POS_CITY,"Hello World") bc.SetInt32(c4d.SKY_POS_CITY_COMBO,1) bc.SetFloat(c4d.SKY_POS_LATITUDE,0.1) bc.SetFloat(c4d.SKY_POS_LONGITUDE,0.1) bc.SetInt32(c4d.SKY_POS_TIMEZONE,c4d.SKY_POS_TZ_OS) bc.SetInt32(c4d.SKY_POS_DST_SETTINGS,c4d.SKY_POS_DST_OFF) bc.SetFloat(c4d.SKY_POS_TIME_ZONE,0.1) bc.SetFloat(c4d.SKY_POS_DST_TIME_ZONE,0.1) bc.SetBool(c4d.SKY_PHYSICAL_SKY_ENABLE,True) bc.SetBool(c4d.SKY_REAL_SKY_SKY_HORIZON,True) bc.SetFloat(c4d.SKY_REAL_SKY_SKY_COLOR_WARMNESS,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SKY_INTENSITY,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SKY_INTENSITY_NIGHT,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SKY_SATURATION,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SKY_HUE,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SKY_GAMMA,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SKY_SEEN_INTENSITY,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SKY_DITHER,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_TURBIDITY,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_OZONE,0.1) bc.SetBool(c4d.SKY_GENERAL_USER_HORIZON,True) bc.SetFloat(c4d.SKY_GENERAL_USER_HORIZON_MAX_ALT,0.1) bc.SetFloat(c4d.SKY_GENERAL_STRENGTH,0.1) bc.SetFloat(c4d.SKY_GENERAL_MOISTURE,0.1) bc.SetFloat(c4d.SKY_GENERAL_HORIZON_START,0.1) bc.SetFloat(c4d.SKY_GENERAL_EARTH_RADIUS,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SUN_INTENSITY,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SUN_SATURATION,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SUN_HUE,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SUN_GAMMA,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SUN_SIZE_RATIO,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_SUN_SEEN_INTENSITY,0.1) bc.SetBool(c4d.SKY_GENERAL_CHANGE_SUN_COL,True) bc.SetBool(c4d.SKY_GENERAL_LENSFLARES,True) bc.SetFloat(c4d.SKY_GENERAL_MAX_FLARE_GLOW,0.1) bc.SetFloat(c4d.SKY_GENERAL_MAX_FLARE_REFL,0.1) bc.SetFloat(c4d.SKY_GENERAL_SUN_DIST_SCALE,0.1) bc.SetInt32(c4d.SKY_REAL_SKY_SUN_SHADOW_TYPE,c4d.SKY_SUN_SHADOW_TYPE_NONE) bc.SetFloat(c4d.SKY_REAL_SKY_SUN_SHADOW_DENSITY,0.1) bc.SetBool(c4d.SKY_REAL_SKY_SUN_SHADOW_TRANSPARENCY,True) bc.SetFloat(c4d.SKY_REAL_SKY_SUN_SAMPLING_QUALITY,0.1) bc.SetInt32(c4d.SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MIN,1) bc.SetInt32(c4d.SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MAX,1) bc.SetFloat(c4d.SKY_REAL_SKY_ATM_INTENSITY,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_ATM_HORIZON,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_ATM_SATURATION,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_ATM_HUE,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_ATM_GAMMA,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_ATM_SCALE_RATIO,0.1) bc.SetFloat(c4d.SKY_REAL_SKY_ATM_DITHER,0.1) bc.SetBool(c4d.SKY_CLOUDS_SHADOW,True) bc.SetBool(c4d.SKY_CLOUD_1_ACTIVE,True) bc.SetBool(c4d.SKY_CLOUD_2_ACTIVE,True) bc.SetBool(c4d.SKY_CLOUD_3_ACTIVE,True) bc.SetBool(c4d.SKY_CLOUD_4_ACTIVE,True) bc.SetBool(c4d.SKY_CLOUD_5_ACTIVE,True) bc.SetBool(c4d.SKY_CLOUD_6_ACTIVE,True) bc.SetInt32(c4d.SKY_CLOUD_1_NOISE,1) bc.SetFloat(c4d.SKY_CLOUD_1_HEIGHT,0.1) bc.SetFloat(c4d.SKY_CLOUD_1_DENSITY,0.1) bc.SetFloat(c4d.SKY_CLOUD_1_COVERAGE,0.1) bc.SetFloat(c4d.SKY_CLOUD_1_THICKNESS,0.1) bc.SetFloat(c4d.SKY_CLOUD_1_TRANSPARENCY,0.1) bc.SetFloat(c4d.SKY_CLOUD_1_SPEED,0.1) bc.SetFloat(c4d.SKY_CLOUD_1_OFFSET,0.1) bc.SetFloat(c4d.SKY_CLOUD_1_SCALE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_1_SCALE_WE,0.1) bc.SetFloat(c4d.SKY_CLOUD_1_MOVE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_1_MOVE_WE,0.1) bc.SetInt32(c4d.SKY_CLOUD_2_NOISE,1) bc.SetFloat(c4d.SKY_CLOUD_2_HEIGHT,0.1) bc.SetFloat(c4d.SKY_CLOUD_2_DENSITY,0.1) bc.SetFloat(c4d.SKY_CLOUD_2_COVERAGE,0.1) bc.SetFloat(c4d.SKY_CLOUD_2_THICKNESS,0.1) bc.SetFloat(c4d.SKY_CLOUD_2_TRANSPARENCY,0.1) bc.SetFloat(c4d.SKY_CLOUD_2_SPEED,0.1) bc.SetFloat(c4d.SKY_CLOUD_2_OFFSET,0.1) bc.SetFloat(c4d.SKY_CLOUD_2_SCALE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_2_SCALE_WE,0.1) bc.SetFloat(c4d.SKY_CLOUD_2_MOVE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_2_MOVE_WE,0.1) bc.SetInt32(c4d.SKY_CLOUD_3_NOISE,1) bc.SetFloat(c4d.SKY_CLOUD_3_HEIGHT,0.1) bc.SetFloat(c4d.SKY_CLOUD_3_DENSITY,0.1) bc.SetFloat(c4d.SKY_CLOUD_3_COVERAGE,0.1) bc.SetFloat(c4d.SKY_CLOUD_3_THICKNESS,0.1) bc.SetFloat(c4d.SKY_CLOUD_3_TRANSPARENCY,0.1) bc.SetFloat(c4d.SKY_CLOUD_3_SPEED,0.1) bc.SetFloat(c4d.SKY_CLOUD_3_OFFSET,0.1) bc.SetFloat(c4d.SKY_CLOUD_3_SCALE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_3_SCALE_WE,0.1) bc.SetFloat(c4d.SKY_CLOUD_3_MOVE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_3_MOVE_WE,0.1) bc.SetInt32(c4d.SKY_CLOUD_4_NOISE,1) bc.SetFloat(c4d.SKY_CLOUD_4_HEIGHT,0.1) bc.SetFloat(c4d.SKY_CLOUD_4_DENSITY,0.1) bc.SetFloat(c4d.SKY_CLOUD_4_COVERAGE,0.1) bc.SetFloat(c4d.SKY_CLOUD_4_THICKNESS,0.1) bc.SetFloat(c4d.SKY_CLOUD_4_TRANSPARENCY,0.1) bc.SetFloat(c4d.SKY_CLOUD_4_SPEED,0.1) bc.SetFloat(c4d.SKY_CLOUD_4_OFFSET,0.1) bc.SetFloat(c4d.SKY_CLOUD_4_SCALE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_4_SCALE_WE,0.1) bc.SetFloat(c4d.SKY_CLOUD_4_MOVE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_4_MOVE_WE,0.1) bc.SetInt32(c4d.SKY_CLOUD_5_NOISE,1) bc.SetFloat(c4d.SKY_CLOUD_5_HEIGHT,0.1) bc.SetFloat(c4d.SKY_CLOUD_5_DENSITY,0.1) bc.SetFloat(c4d.SKY_CLOUD_5_COVERAGE,0.1) bc.SetFloat(c4d.SKY_CLOUD_5_THICKNESS,0.1) bc.SetFloat(c4d.SKY_CLOUD_5_TRANSPARENCY,0.1) bc.SetFloat(c4d.SKY_CLOUD_5_SPEED,0.1) bc.SetFloat(c4d.SKY_CLOUD_5_OFFSET,0.1) bc.SetFloat(c4d.SKY_CLOUD_5_SCALE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_5_SCALE_WE,0.1) bc.SetFloat(c4d.SKY_CLOUD_5_MOVE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_5_MOVE_WE,0.1) bc.SetInt32(c4d.SKY_CLOUD_6_NOISE,1) bc.SetFloat(c4d.SKY_CLOUD_6_HEIGHT,0.1) bc.SetFloat(c4d.SKY_CLOUD_6_DENSITY,0.1) bc.SetFloat(c4d.SKY_CLOUD_6_COVERAGE,0.1) bc.SetFloat(c4d.SKY_CLOUD_6_THICKNESS,0.1) bc.SetFloat(c4d.SKY_CLOUD_6_TRANSPARENCY,0.1) bc.SetFloat(c4d.SKY_CLOUD_6_SPEED,0.1) bc.SetFloat(c4d.SKY_CLOUD_6_OFFSET,0.1) bc.SetFloat(c4d.SKY_CLOUD_6_SCALE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_6_SCALE_WE,0.1) bc.SetFloat(c4d.SKY_CLOUD_6_MOVE_NS,0.1) bc.SetFloat(c4d.SKY_CLOUD_6_MOVE_WE,0.1) bc.SetBool(c4d.SKY_ASTRO_MOON_SHOW,True) bc.SetFloat(c4d.SKY_GENERAL_SCALE_MOON,0.1) bc.SetFloat(c4d.SKY_GENERAL_MOON_BRIGHT,0.1) bc.SetFloat(c4d.SKY_GENERAL_MOON_DARK,0.1) bc.SetFloat(c4d.SKY_GENERAL_MOON_DIST_SCALE,0.1) bc.SetBool(c4d.SKY_ASTRO_SHOW_STARS,True) bc.SetFloat(c4d.SKY_GENERAL_MIN_MAG,0.1) bc.SetBool(c4d.SKY_GENERAL_RESIZE_STARS,True) bc.SetFloat(c4d.SKY_GENERAL_LIGHTEN_UP_STARS,0.1) bc.SetFloat(c4d.SKY_GENERAL_STAR_RADIUS,0.1) bc.SetBool(c4d.SKY_GENERAL_SHOW_CONSTELLATIONS,True) bc.SetFloat(c4d.SKY_GENERAL_GRID_WIDTH,0.1) bc.SetBool(c4d.SKY_ASTRO_PLANETS_SHOW,True) bc.SetBool(c4d.SKY_GENERAL_SKY_DOME,True) bc.SetBool(c4d.SKY_GENERAL_MERGE_SUN,True) bc.SetBool(c4d.SKY_MATERIAL_GLOBALILLUM_GENERATE,True) bc.SetFloat(c4d.SKY_MATERIAL_GLOBALILLUM_GENERATE_STRENGTH,0.1) bc.SetFloat(c4d.SKY_GENERAL_GI_SATURATION,0.1) bc.SetFloat(c4d.SKY_GENERAL_GI_INFLUENCE,0.1) bc.SetInt32(c4d.SKY_MATERIAL_PREVIEWSIZE,c4d.SKY_MATERIAL_PREVIEWSIZE_DEF) bc.SetBool(c4d.SKY_SHOW_HUD,True) bc.SetBool(c4d.SKY_UPDATE_EDITOR,True) bc.SetBool(c4d.SKY_SHOW_CLOUD_BOX,True) bc.SetFloat(c4d.SKY_CLOUD_EDITOR_QUALITY,0.1) bc.SetBool(c4d.SKY_VOL_CLOUDS_ADJUST_ALTITUDE,True) bc.SetBool(c4d.SKY_VOL_CLOUDS_RECEIVE_SHADOWS,True) bc.SetFloat(c4d.SKY_VOL_CLOUDS_SAMPLE_SIZE,0.1) bc.SetInt32(c4d.SKY_VOL_CLOUDS_EDGE_NOISE_NOISE,1) bc.SetFloat(c4d.SKY_VOL_CLOUDS_EDGE_NOISE_CONTRAST,0.1) bc.SetFloat(c4d.SKY_VOL_CLOUDS_EDGE_NOISE_SCALE,0.1) bc.SetFloat(c4d.SKY_VOL_CLOUDS_EDGE_NOISE_SPEED,0.1) bc.SetFloat(c4d.SKY_FOG_START,0.1) bc.SetFloat(c4d.SKY_FOG_END,0.1) bc.SetFloat(c4d.SKY_FOG_MAXDIST,0.1) bc.SetFloat(c4d.SKY_FOG_DENSITY,0.1) bc.SetInt32(c4d.SKY_FOG_NOISE,1) bc.SetFloat(c4d.SKY_FOG_NOISE_STRENGTH,0.1) bc.SetVector(c4d.SKY_FOG_SCALE, c4d.Vector(1.0,1.0,1.0) bc.SetVector(c4d.SKY_FOG_MOVEMENT, c4d.Vector(1.0,1.0,1.0) bc.SetFloat(c4d.SKY_FOG_SAMPLE_SIZE,0.1) bc.SetFloat(c4d.SKY_FOG_ANIMATION_SPEED,0.1) bc.SetFloat(c4d.SKY_FOG_SHADOW_INTENSITY,0.1) bc.SetFloat(c4d.SKY_FOG_ILLUM_INTENSITY,0.1) bc.SetFloat(c4d.SKY_RAINBOW_MAX_STRENGTH,0.1) bc.SetBool(c4d.SKY_RAINBOW_TURBIDITY_DEP,True) bc.SetFloat(c4d.SKY_RAINBOW_TURBIDITY_THRESHOLD_MIN,0.1) bc.SetFloat(c4d.SKY_RAINBOW_TURBIDITY_THRESHOLD_MAX,0.1) bc.SetFloat(c4d.SKY_RAINBOW_1_INNER,0.1) bc.SetFloat(c4d.SKY_RAINBOW_1_OUTER,0.1) bc.SetFloat(c4d.SKY_RAINBOW_2_INNER,0.1) bc.SetFloat(c4d.SKY_RAINBOW_2_OUTER,0.1) bc.SetFloat(c4d.SKY_RAINBOW_START_CLIP,0.1) bc.SetFloat(c4d.SKY_RAINBOW_END_CLIP,0.1) bc.SetBool(c4d.SKY_BEAMS_TURBIDITY_DEPENDENT,True) bc.SetFloat(c4d.SKY_BEAMS_INTENS,0.1) bc.SetFloat(c4d.SKY_BEAMS_MIN_BRIGHTNESS,0.1) bc.SetFloat(c4d.SKY_BEAMS_START,0.1) bc.SetFloat(c4d.SKY_BEAMS_END,0.1) bc.SetFloat(c4d.SKY_BEAMS_SAMPLE_DIST,0.1) if __name__=='__main__': main()
C++
#include "c4d.h" #include "../sky/description/oskyshader.h" void SampleFunction() { BaseDocument *pDoc = GetActiveDocument(); BaseObject *pObject = BaseObject::Alloc(Oskyshader); pDoc->InsertObject(pObject); pDoc->StartUndo(); pDoc->AddUndo(UNDO_NEW,pObject); pDoc->EndUndo(); EventAdd(EVENT_FORCEREDRAW); //You can set parameters two different ways. //First way //Some objects do not store all their data in the container. You need to use GetParameter()/SetParameter() instead. DESCFLAGS_SET flags = DESCFLAGS_SET_PARAM_SET; pObject->SetParameter(DescID(SKY_TIMEANDLOCATION),GeData(true),flags); pObject->SetParameter(DescID(SKY_PHYSICALSKYPAGE),GeData(true),flags); pObject->SetParameter(DescID(SKY_PHYSICAL_SUN_ENABLE),GeData(true),flags); pObject->SetParameter(DescID(SKY_PHYSICAL_ATM_ENABLE),GeData(true),flags); pObject->SetParameter(DescID(SKY_CLOUD_ENABLE),GeData(true),flags); pObject->SetParameter(DescID(SKY_DETAILS),GeData(true),flags); pObject->SetParameter(DescID(SKY_VOL_CLOUDS_RENDER),GeData(true),flags); pObject->SetParameter(DescID(SKY_FOG_ENABLE),GeData(true),flags); pObject->SetParameter(DescID(SKY_RAINBOW_RENDER),GeData(true),flags); pObject->SetParameter(DescID(SKY_BEAMS_ENABLE),GeData(true),flags); pObject->SetParameter(DescID(),GeData(true),flags); pObject->SetParameter(DescID(SKY_TIME_NOW),GeData(true),flags); pObject->SetParameter(DescID(SKY_DATE_TODAY),GeData(true),flags); pObject->SetParameter(DescID(SKY_DATE_ANIMATE),GeData(true),flags); pObject->SetParameter(DescID(SKY_TIME_ANIMATE),GeData(true),flags); pObject->SetParameter(DescID(SKY_POS_CITY),GeData("Hello World"),flags); pObject->SetParameter(DescID(SKY_POS_CITY_COMBO),GeData(1),flags); pObject->SetParameter(DescID(SKY_POS_LATITUDE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_POS_LONGITUDE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_POS_TIMEZONE),GeData(SKY_POS_TZ_OS),flags); pObject->SetParameter(DescID(SKY_POS_DST_SETTINGS),GeData(SKY_POS_DST_OFF),flags); pObject->SetParameter(DescID(SKY_POS_TIME_ZONE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_POS_DST_TIME_ZONE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_PHYSICAL_SKY_ENABLE),GeData(true),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SKY_HORIZON),GeData(true),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SKY_COLOR_WARMNESS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SKY_INTENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SKY_INTENSITY_NIGHT),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SKY_SATURATION),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SKY_HUE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SKY_GAMMA),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SKY_SEEN_INTENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SKY_DITHER),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_TURBIDITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_OZONE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_USER_HORIZON),GeData(true),flags); pObject->SetParameter(DescID(SKY_GENERAL_USER_HORIZON_MAX_ALT),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_STRENGTH),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_MOISTURE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_HORIZON_START),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_EARTH_RADIUS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_INTENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_SATURATION),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_HUE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_GAMMA),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_SIZE_RATIO),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_SEEN_INTENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_CHANGE_SUN_COL),GeData(true),flags); pObject->SetParameter(DescID(SKY_GENERAL_LENSFLARES),GeData(true),flags); pObject->SetParameter(DescID(SKY_GENERAL_MAX_FLARE_GLOW),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_MAX_FLARE_REFL),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_SUN_DIST_SCALE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_SHADOW_TYPE),GeData(SKY_SUN_SHADOW_TYPE_NONE),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_SHADOW_DENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_SHADOW_TRANSPARENCY),GeData(true),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_SAMPLING_QUALITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MIN),GeData(1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MAX),GeData(1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_ATM_INTENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_ATM_HORIZON),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_ATM_SATURATION),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_ATM_HUE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_ATM_GAMMA),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_ATM_SCALE_RATIO),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_REAL_SKY_ATM_DITHER),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUDS_SHADOW),GeData(true),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_ACTIVE),GeData(true),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_ACTIVE),GeData(true),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_ACTIVE),GeData(true),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_ACTIVE),GeData(true),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_ACTIVE),GeData(true),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_ACTIVE),GeData(true),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_NOISE),GeData(1),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_HEIGHT),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_DENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_COVERAGE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_THICKNESS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_TRANSPARENCY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_SPEED),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_OFFSET),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_SCALE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_SCALE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_MOVE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_1_MOVE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_NOISE),GeData(1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_HEIGHT),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_DENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_COVERAGE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_THICKNESS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_TRANSPARENCY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_SPEED),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_OFFSET),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_SCALE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_SCALE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_MOVE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_2_MOVE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_NOISE),GeData(1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_HEIGHT),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_DENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_COVERAGE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_THICKNESS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_TRANSPARENCY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_SPEED),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_OFFSET),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_SCALE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_SCALE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_MOVE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_3_MOVE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_NOISE),GeData(1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_HEIGHT),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_DENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_COVERAGE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_THICKNESS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_TRANSPARENCY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_SPEED),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_OFFSET),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_SCALE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_SCALE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_MOVE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_4_MOVE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_NOISE),GeData(1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_HEIGHT),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_DENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_COVERAGE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_THICKNESS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_TRANSPARENCY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_SPEED),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_OFFSET),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_SCALE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_SCALE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_MOVE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_5_MOVE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_NOISE),GeData(1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_HEIGHT),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_DENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_COVERAGE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_THICKNESS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_TRANSPARENCY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_SPEED),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_OFFSET),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_SCALE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_SCALE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_MOVE_NS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_CLOUD_6_MOVE_WE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_ASTRO_MOON_SHOW),GeData(true),flags); pObject->SetParameter(DescID(SKY_GENERAL_SCALE_MOON),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_MOON_BRIGHT),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_MOON_DARK),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_MOON_DIST_SCALE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_ASTRO_SHOW_STARS),GeData(true),flags); pObject->SetParameter(DescID(SKY_GENERAL_MIN_MAG),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_RESIZE_STARS),GeData(true),flags); pObject->SetParameter(DescID(SKY_GENERAL_LIGHTEN_UP_STARS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_STAR_RADIUS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_SHOW_CONSTELLATIONS),GeData(true),flags); pObject->SetParameter(DescID(SKY_GENERAL_GRID_WIDTH),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_ASTRO_PLANETS_SHOW),GeData(true),flags); pObject->SetParameter(DescID(SKY_GENERAL_SKY_DOME),GeData(true),flags); pObject->SetParameter(DescID(SKY_GENERAL_MERGE_SUN),GeData(true),flags); pObject->SetParameter(DescID(SKY_MATERIAL_GLOBALILLUM_GENERATE),GeData(true),flags); pObject->SetParameter(DescID(SKY_MATERIAL_GLOBALILLUM_GENERATE_STRENGTH),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_GI_SATURATION),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_GENERAL_GI_INFLUENCE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_MATERIAL_PREVIEWSIZE),GeData(SKY_MATERIAL_PREVIEWSIZE_DEF),flags); pObject->SetParameter(DescID(SKY_SHOW_HUD),GeData(true),flags); pObject->SetParameter(DescID(SKY_UPDATE_EDITOR),GeData(true),flags); pObject->SetParameter(DescID(SKY_SHOW_CLOUD_BOX),GeData(true),flags); pObject->SetParameter(DescID(SKY_CLOUD_EDITOR_QUALITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_VOL_CLOUDS_ADJUST_ALTITUDE),GeData(true),flags); pObject->SetParameter(DescID(SKY_VOL_CLOUDS_RECEIVE_SHADOWS),GeData(true),flags); pObject->SetParameter(DescID(SKY_VOL_CLOUDS_SAMPLE_SIZE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_VOL_CLOUDS_EDGE_NOISE_NOISE),GeData(1),flags); pObject->SetParameter(DescID(SKY_VOL_CLOUDS_EDGE_NOISE_CONTRAST),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_VOL_CLOUDS_EDGE_NOISE_SCALE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_VOL_CLOUDS_EDGE_NOISE_SPEED),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_FOG_START),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_FOG_END),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_FOG_MAXDIST),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_FOG_DENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_FOG_NOISE),GeData(1),flags); pObject->SetParameter(DescID(SKY_FOG_NOISE_STRENGTH),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_FOG_SCALE),GeData(Vector(1.0,1.0,1.0)),flags); pObject->SetParameter(DescID(SKY_FOG_MOVEMENT),GeData(Vector(1.0,1.0,1.0)),flags); pObject->SetParameter(DescID(SKY_FOG_SAMPLE_SIZE),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_FOG_ANIMATION_SPEED),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_FOG_SHADOW_INTENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_FOG_ILLUM_INTENSITY),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_RAINBOW_MAX_STRENGTH),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_RAINBOW_TURBIDITY_DEP),GeData(true),flags); pObject->SetParameter(DescID(SKY_RAINBOW_TURBIDITY_THRESHOLD_MIN),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_RAINBOW_TURBIDITY_THRESHOLD_MAX),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_RAINBOW_1_INNER),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_RAINBOW_1_OUTER),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_RAINBOW_2_INNER),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_RAINBOW_2_OUTER),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_RAINBOW_START_CLIP),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_RAINBOW_END_CLIP),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_BEAMS_TURBIDITY_DEPENDENT),GeData(true),flags); pObject->SetParameter(DescID(SKY_BEAMS_INTENS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_BEAMS_MIN_BRIGHTNESS),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_BEAMS_START),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_BEAMS_END),GeData(0.1),flags); pObject->SetParameter(DescID(SKY_BEAMS_SAMPLE_DIST),GeData(0.1),flags); pObject->Message(MSG_UPDATE); //Second way, using the base container. BaseContainer *bc = pObject->GetDataInstance(); bc->SetBool(SKY_TIMEANDLOCATION,true); bc->SetBool(SKY_PHYSICALSKYPAGE,true); bc->SetBool(SKY_PHYSICAL_SUN_ENABLE,true); bc->SetBool(SKY_PHYSICAL_ATM_ENABLE,true); bc->SetBool(SKY_CLOUD_ENABLE,true); bc->SetBool(SKY_DETAILS,true); bc->SetBool(SKY_VOL_CLOUDS_RENDER,true); bc->SetBool(SKY_FOG_ENABLE,true); bc->SetBool(SKY_RAINBOW_RENDER,true); bc->SetBool(SKY_BEAMS_ENABLE,true); bc->SetBool(,true); bc->SetBool(SKY_TIME_NOW,true); bc->SetBool(SKY_DATE_TODAY,true); bc->SetBool(SKY_DATE_ANIMATE,true); bc->SetBool(SKY_TIME_ANIMATE,true); bc->SetString(SKY_POS_CITY,"Hello World"); bc->SetInt32(SKY_POS_CITY_COMBO,1); bc->SetFloat(SKY_POS_LATITUDE,0.1); bc->SetFloat(SKY_POS_LONGITUDE,0.1); bc->SetInt32(SKY_POS_TIMEZONE,SKY_POS_TZ_OS); bc->SetInt32(SKY_POS_DST_SETTINGS,SKY_POS_DST_OFF); bc->SetFloat(SKY_POS_TIME_ZONE,0.1); bc->SetFloat(SKY_POS_DST_TIME_ZONE,0.1); bc->SetBool(SKY_PHYSICAL_SKY_ENABLE,true); bc->SetBool(SKY_REAL_SKY_SKY_HORIZON,true); bc->SetFloat(SKY_REAL_SKY_SKY_COLOR_WARMNESS,0.1); bc->SetFloat(SKY_REAL_SKY_SKY_INTENSITY,0.1); bc->SetFloat(SKY_REAL_SKY_SKY_INTENSITY_NIGHT,0.1); bc->SetFloat(SKY_REAL_SKY_SKY_SATURATION,0.1); bc->SetFloat(SKY_REAL_SKY_SKY_HUE,0.1); bc->SetFloat(SKY_REAL_SKY_SKY_GAMMA,0.1); bc->SetFloat(SKY_REAL_SKY_SKY_SEEN_INTENSITY,0.1); bc->SetFloat(SKY_REAL_SKY_SKY_DITHER,0.1); bc->SetFloat(SKY_REAL_SKY_TURBIDITY,0.1); bc->SetFloat(SKY_REAL_SKY_OZONE,0.1); bc->SetBool(SKY_GENERAL_USER_HORIZON,true); bc->SetFloat(SKY_GENERAL_USER_HORIZON_MAX_ALT,0.1); bc->SetFloat(SKY_GENERAL_STRENGTH,0.1); bc->SetFloat(SKY_GENERAL_MOISTURE,0.1); bc->SetFloat(SKY_GENERAL_HORIZON_START,0.1); bc->SetFloat(SKY_GENERAL_EARTH_RADIUS,0.1); bc->SetFloat(SKY_REAL_SKY_SUN_INTENSITY,0.1); bc->SetFloat(SKY_REAL_SKY_SUN_SATURATION,0.1); bc->SetFloat(SKY_REAL_SKY_SUN_HUE,0.1); bc->SetFloat(SKY_REAL_SKY_SUN_GAMMA,0.1); bc->SetFloat(SKY_REAL_SKY_SUN_SIZE_RATIO,0.1); bc->SetFloat(SKY_REAL_SKY_SUN_SEEN_INTENSITY,0.1); bc->SetBool(SKY_GENERAL_CHANGE_SUN_COL,true); bc->SetBool(SKY_GENERAL_LENSFLARES,true); bc->SetFloat(SKY_GENERAL_MAX_FLARE_GLOW,0.1); bc->SetFloat(SKY_GENERAL_MAX_FLARE_REFL,0.1); bc->SetFloat(SKY_GENERAL_SUN_DIST_SCALE,0.1); bc->SetInt32(SKY_REAL_SKY_SUN_SHADOW_TYPE,SKY_SUN_SHADOW_TYPE_NONE); bc->SetFloat(SKY_REAL_SKY_SUN_SHADOW_DENSITY,0.1); bc->SetBool(SKY_REAL_SKY_SUN_SHADOW_TRANSPARENCY,true); bc->SetFloat(SKY_REAL_SKY_SUN_SAMPLING_QUALITY,0.1); bc->SetInt32(SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MIN,1); bc->SetInt32(SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MAX,1); bc->SetFloat(SKY_REAL_SKY_ATM_INTENSITY,0.1); bc->SetFloat(SKY_REAL_SKY_ATM_HORIZON,0.1); bc->SetFloat(SKY_REAL_SKY_ATM_SATURATION,0.1); bc->SetFloat(SKY_REAL_SKY_ATM_HUE,0.1); bc->SetFloat(SKY_REAL_SKY_ATM_GAMMA,0.1); bc->SetFloat(SKY_REAL_SKY_ATM_SCALE_RATIO,0.1); bc->SetFloat(SKY_REAL_SKY_ATM_DITHER,0.1); bc->SetBool(SKY_CLOUDS_SHADOW,true); bc->SetBool(SKY_CLOUD_1_ACTIVE,true); bc->SetBool(SKY_CLOUD_2_ACTIVE,true); bc->SetBool(SKY_CLOUD_3_ACTIVE,true); bc->SetBool(SKY_CLOUD_4_ACTIVE,true); bc->SetBool(SKY_CLOUD_5_ACTIVE,true); bc->SetBool(SKY_CLOUD_6_ACTIVE,true); bc->SetInt32(SKY_CLOUD_1_NOISE,1); bc->SetFloat(SKY_CLOUD_1_HEIGHT,0.1); bc->SetFloat(SKY_CLOUD_1_DENSITY,0.1); bc->SetFloat(SKY_CLOUD_1_COVERAGE,0.1); bc->SetFloat(SKY_CLOUD_1_THICKNESS,0.1); bc->SetFloat(SKY_CLOUD_1_TRANSPARENCY,0.1); bc->SetFloat(SKY_CLOUD_1_SPEED,0.1); bc->SetFloat(SKY_CLOUD_1_OFFSET,0.1); bc->SetFloat(SKY_CLOUD_1_SCALE_NS,0.1); bc->SetFloat(SKY_CLOUD_1_SCALE_WE,0.1); bc->SetFloat(SKY_CLOUD_1_MOVE_NS,0.1); bc->SetFloat(SKY_CLOUD_1_MOVE_WE,0.1); bc->SetInt32(SKY_CLOUD_2_NOISE,1); bc->SetFloat(SKY_CLOUD_2_HEIGHT,0.1); bc->SetFloat(SKY_CLOUD_2_DENSITY,0.1); bc->SetFloat(SKY_CLOUD_2_COVERAGE,0.1); bc->SetFloat(SKY_CLOUD_2_THICKNESS,0.1); bc->SetFloat(SKY_CLOUD_2_TRANSPARENCY,0.1); bc->SetFloat(SKY_CLOUD_2_SPEED,0.1); bc->SetFloat(SKY_CLOUD_2_OFFSET,0.1); bc->SetFloat(SKY_CLOUD_2_SCALE_NS,0.1); bc->SetFloat(SKY_CLOUD_2_SCALE_WE,0.1); bc->SetFloat(SKY_CLOUD_2_MOVE_NS,0.1); bc->SetFloat(SKY_CLOUD_2_MOVE_WE,0.1); bc->SetInt32(SKY_CLOUD_3_NOISE,1); bc->SetFloat(SKY_CLOUD_3_HEIGHT,0.1); bc->SetFloat(SKY_CLOUD_3_DENSITY,0.1); bc->SetFloat(SKY_CLOUD_3_COVERAGE,0.1); bc->SetFloat(SKY_CLOUD_3_THICKNESS,0.1); bc->SetFloat(SKY_CLOUD_3_TRANSPARENCY,0.1); bc->SetFloat(SKY_CLOUD_3_SPEED,0.1); bc->SetFloat(SKY_CLOUD_3_OFFSET,0.1); bc->SetFloat(SKY_CLOUD_3_SCALE_NS,0.1); bc->SetFloat(SKY_CLOUD_3_SCALE_WE,0.1); bc->SetFloat(SKY_CLOUD_3_MOVE_NS,0.1); bc->SetFloat(SKY_CLOUD_3_MOVE_WE,0.1); bc->SetInt32(SKY_CLOUD_4_NOISE,1); bc->SetFloat(SKY_CLOUD_4_HEIGHT,0.1); bc->SetFloat(SKY_CLOUD_4_DENSITY,0.1); bc->SetFloat(SKY_CLOUD_4_COVERAGE,0.1); bc->SetFloat(SKY_CLOUD_4_THICKNESS,0.1); bc->SetFloat(SKY_CLOUD_4_TRANSPARENCY,0.1); bc->SetFloat(SKY_CLOUD_4_SPEED,0.1); bc->SetFloat(SKY_CLOUD_4_OFFSET,0.1); bc->SetFloat(SKY_CLOUD_4_SCALE_NS,0.1); bc->SetFloat(SKY_CLOUD_4_SCALE_WE,0.1); bc->SetFloat(SKY_CLOUD_4_MOVE_NS,0.1); bc->SetFloat(SKY_CLOUD_4_MOVE_WE,0.1); bc->SetInt32(SKY_CLOUD_5_NOISE,1); bc->SetFloat(SKY_CLOUD_5_HEIGHT,0.1); bc->SetFloat(SKY_CLOUD_5_DENSITY,0.1); bc->SetFloat(SKY_CLOUD_5_COVERAGE,0.1); bc->SetFloat(SKY_CLOUD_5_THICKNESS,0.1); bc->SetFloat(SKY_CLOUD_5_TRANSPARENCY,0.1); bc->SetFloat(SKY_CLOUD_5_SPEED,0.1); bc->SetFloat(SKY_CLOUD_5_OFFSET,0.1); bc->SetFloat(SKY_CLOUD_5_SCALE_NS,0.1); bc->SetFloat(SKY_CLOUD_5_SCALE_WE,0.1); bc->SetFloat(SKY_CLOUD_5_MOVE_NS,0.1); bc->SetFloat(SKY_CLOUD_5_MOVE_WE,0.1); bc->SetInt32(SKY_CLOUD_6_NOISE,1); bc->SetFloat(SKY_CLOUD_6_HEIGHT,0.1); bc->SetFloat(SKY_CLOUD_6_DENSITY,0.1); bc->SetFloat(SKY_CLOUD_6_COVERAGE,0.1); bc->SetFloat(SKY_CLOUD_6_THICKNESS,0.1); bc->SetFloat(SKY_CLOUD_6_TRANSPARENCY,0.1); bc->SetFloat(SKY_CLOUD_6_SPEED,0.1); bc->SetFloat(SKY_CLOUD_6_OFFSET,0.1); bc->SetFloat(SKY_CLOUD_6_SCALE_NS,0.1); bc->SetFloat(SKY_CLOUD_6_SCALE_WE,0.1); bc->SetFloat(SKY_CLOUD_6_MOVE_NS,0.1); bc->SetFloat(SKY_CLOUD_6_MOVE_WE,0.1); bc->SetBool(SKY_ASTRO_MOON_SHOW,true); bc->SetFloat(SKY_GENERAL_SCALE_MOON,0.1); bc->SetFloat(SKY_GENERAL_MOON_BRIGHT,0.1); bc->SetFloat(SKY_GENERAL_MOON_DARK,0.1); bc->SetFloat(SKY_GENERAL_MOON_DIST_SCALE,0.1); bc->SetBool(SKY_ASTRO_SHOW_STARS,true); bc->SetFloat(SKY_GENERAL_MIN_MAG,0.1); bc->SetBool(SKY_GENERAL_RESIZE_STARS,true); bc->SetFloat(SKY_GENERAL_LIGHTEN_UP_STARS,0.1); bc->SetFloat(SKY_GENERAL_STAR_RADIUS,0.1); bc->SetBool(SKY_GENERAL_SHOW_CONSTELLATIONS,true); bc->SetFloat(SKY_GENERAL_GRID_WIDTH,0.1); bc->SetBool(SKY_ASTRO_PLANETS_SHOW,true); bc->SetBool(SKY_GENERAL_SKY_DOME,true); bc->SetBool(SKY_GENERAL_MERGE_SUN,true); bc->SetBool(SKY_MATERIAL_GLOBALILLUM_GENERATE,true); bc->SetFloat(SKY_MATERIAL_GLOBALILLUM_GENERATE_STRENGTH,0.1); bc->SetFloat(SKY_GENERAL_GI_SATURATION,0.1); bc->SetFloat(SKY_GENERAL_GI_INFLUENCE,0.1); bc->SetInt32(SKY_MATERIAL_PREVIEWSIZE,SKY_MATERIAL_PREVIEWSIZE_DEF); bc->SetBool(SKY_SHOW_HUD,true); bc->SetBool(SKY_UPDATE_EDITOR,true); bc->SetBool(SKY_SHOW_CLOUD_BOX,true); bc->SetFloat(SKY_CLOUD_EDITOR_QUALITY,0.1); bc->SetBool(SKY_VOL_CLOUDS_ADJUST_ALTITUDE,true); bc->SetBool(SKY_VOL_CLOUDS_RECEIVE_SHADOWS,true); bc->SetFloat(SKY_VOL_CLOUDS_SAMPLE_SIZE,0.1); bc->SetInt32(SKY_VOL_CLOUDS_EDGE_NOISE_NOISE,1); bc->SetFloat(SKY_VOL_CLOUDS_EDGE_NOISE_CONTRAST,0.1); bc->SetFloat(SKY_VOL_CLOUDS_EDGE_NOISE_SCALE,0.1); bc->SetFloat(SKY_VOL_CLOUDS_EDGE_NOISE_SPEED,0.1); bc->SetFloat(SKY_FOG_START,0.1); bc->SetFloat(SKY_FOG_END,0.1); bc->SetFloat(SKY_FOG_MAXDIST,0.1); bc->SetFloat(SKY_FOG_DENSITY,0.1); bc->SetInt32(SKY_FOG_NOISE,1); bc->SetFloat(SKY_FOG_NOISE_STRENGTH,0.1); bc->SetVector(SKY_FOG_SCALE, c4d.Vector(1.0,1.0,1.0); bc->SetVector(SKY_FOG_MOVEMENT, c4d.Vector(1.0,1.0,1.0); bc->SetFloat(SKY_FOG_SAMPLE_SIZE,0.1); bc->SetFloat(SKY_FOG_ANIMATION_SPEED,0.1); bc->SetFloat(SKY_FOG_SHADOW_INTENSITY,0.1); bc->SetFloat(SKY_FOG_ILLUM_INTENSITY,0.1); bc->SetFloat(SKY_RAINBOW_MAX_STRENGTH,0.1); bc->SetBool(SKY_RAINBOW_TURBIDITY_DEP,true); bc->SetFloat(SKY_RAINBOW_TURBIDITY_THRESHOLD_MIN,0.1); bc->SetFloat(SKY_RAINBOW_TURBIDITY_THRESHOLD_MAX,0.1); bc->SetFloat(SKY_RAINBOW_1_INNER,0.1); bc->SetFloat(SKY_RAINBOW_1_OUTER,0.1); bc->SetFloat(SKY_RAINBOW_2_INNER,0.1); bc->SetFloat(SKY_RAINBOW_2_OUTER,0.1); bc->SetFloat(SKY_RAINBOW_START_CLIP,0.1); bc->SetFloat(SKY_RAINBOW_END_CLIP,0.1); bc->SetBool(SKY_BEAMS_TURBIDITY_DEPENDENT,true); bc->SetFloat(SKY_BEAMS_INTENS,0.1); bc->SetFloat(SKY_BEAMS_MIN_BRIGHTNESS,0.1); bc->SetFloat(SKY_BEAMS_START,0.1); bc->SetFloat(SKY_BEAMS_END,0.1); bc->SetFloat(SKY_BEAMS_SAMPLE_DIST,0.1); pObject->Message(MSG_UPDATE); }
Buttons
This node has buttons. Buttons can manually be executed by calling the following codePython
c4d.CallButton(obj,c4d.SKY_PRESET) c4d.CallButton(obj,c4d.SKY_WEATHERPRESET) c4d.CallButton(obj,c4d.SKY_CLOUD_1_SAVE_PRESET) c4d.CallButton(obj,c4d.SKY_CLOUD_2_SAVE_PRESET) c4d.CallButton(obj,c4d.SKY_CLOUD_3_SAVE_PRESET) c4d.CallButton(obj,c4d.SKY_CLOUD_4_SAVE_PRESET) c4d.CallButton(obj,c4d.SKY_CLOUD_5_SAVE_PRESET) c4d.CallButton(obj,c4d.SKY_CLOUD_6_SAVE_PRESET) c4d.CallButton(obj,c4d.SKY_SKY_OBECT_PLACE)
C++
DescriptionCommand dc; dc.id = DescID(SKY_PRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(SKY_WEATHERPRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(SKY_CLOUD_1_SAVE_PRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(SKY_CLOUD_2_SAVE_PRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(SKY_CLOUD_3_SAVE_PRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(SKY_CLOUD_4_SAVE_PRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(SKY_CLOUD_5_SAVE_PRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(SKY_CLOUD_6_SAVE_PRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(SKY_SKY_OBECT_PLACE); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
Gradients
This node has gradients. Gradients can manually be edited by calling the following codePython
C++
#include "customgui_gradient.h"SKY_GENERAL_USER_COLOR
GeData data; pObject->GetParameter(DescID(SKY_GENERAL_USER_COLOR),data,DESCFLAGS_GET_PARAM_GET)); Gradient *pGradient = (Gradient*)data.GetCustomDataType(CUSTOMDATATYPE_GRADIENT); if(pGradient) { //must be set before any knot is set pGradient->SetData(GRADIENT_MODE, GeData(GRADIENTMODE_ALPHA)); GradientKnot k1, k2; k1.col = Vector(0.0, 0.0, 1.0); k1.pos = 0.0; k2.col = 1.0; k2.pos = 1.0; pGradient->InsertKnot(k1); pGradient->InsertKnot(k2); } pObject->SetParameter(DescID(SKY_GENERAL_USER_COLOR),data,DESCFLAGS_SET_PARAM_SET));SKY_CLOUD_ROLLOFF
pObject->GetParameter(DescID(SKY_CLOUD_ROLLOFF),data,DESCFLAGS_GET_PARAM_GET));