@frontendrob I really love what you've done with Ventura Sky. I'm back to default clouds and got your script working by disabling a few lines in your code. Skymaxx hasn't been that very convincing to me so far. One thing that had annoyed the living daylights out of me was the white out in cloud effect when going through cloud layers. I managed to fix it with a script I wrote and thought it would be useful to share here (I might put it on the .org as well). I got inspiration from the algorithm in RTH and improved upon it. It essentially disables the effect when passing through clouds and re-enables it when out to allow visibility changes to happen.
--Only works when aircraft is in flight. Does not work in free camera mode.function cld_whiteout() --Cloud offset from aircraft cld_offset = 0 --Get current cloud heights and coverages cb0=get("sim/weather/cloud_base_msl_m") cb1=get("sim/weather/cloud_base_msl_m") cb2=get("sim/weather/cloud_base_msl_m") ct0=get("sim/weather/cloud_tops_msl_m") ct1=get("sim/weather/cloud_tops_msl_m") ct2=get("sim/weather/cloud_tops_msl_m") cc0=get("sim/weather/cloud_coverage") cc1=get("sim/weather/cloud_coverage") cc2=get("sim/weather/cloud_coverage") --Get current aircraft altitude in meters alt=get("sim/flightmodel/position/elevation") --Disable white out flag when aircraft enters clouds if (alt >= (cb0-cld_offset)) and (alt <= (ct0+cld_offset)) and cc0 ~= 0 then wo_flag = 0 set("sim/private/controls/skyc/white_out_in_clouds", wo_flag) elseif (alt >= (cb1-cld_offset)) and (alt <= (ct1+cld_offset)) and cc0 ~= 0 then wo_flag = 0 set("sim/private/controls/skyc/white_out_in_clouds", wo_flag) elseif (alt >= (cb2-cld_offset)) and (alt <= (ct2+cld_offset)) and cc0 ~= 0 then wo_flag = 0 set("sim/private/controls/skyc/white_out_in_clouds", wo_flag) else --Enable white out flag when aircraft not in clouds to allow visibility changes wo_flag = 1 set("sim/private/controls/skyc/white_out_in_clouds", wo_flag) end enddo_often("cld_whiteout()")
It only works when the aircraft is in flight, so the effect is still there if you change to free camera mode (if there's a dataref for altitude in free camera mode I could fix it). Just copy and paste the code as save as a .lua file.