Until now, i used little piece of maxscript to create Corona sun and sky with one click of a button, but in recent builds it doesn't work as it used to. Now it creates sun and its target at the same coordinates. Could someone help me nd fix the script, so it would create sun at position 100, 100, 100 with its target at scene origin. And it would be nice that target would be disabled.
(
( s=coronasun isSelected:on; s.pos=[100,100,100])
renderers.current.bg_texmapUseMain = on
renderers.current.bg_texmap = coronasky name:"EnvMap"
renderers.current.bg_source = 1
renderers.current.colorMap_simpleExposure = -4
)