Corona & maxscript : Corona Sun

Hello,

Just a little problem with the corona sun creation (Corona 4 hotfix 1) if i try to create a target sun, the target is not exposed after creation and can not be use. The solution is to create untargeted and after change to targeted.

Problem :
_Sun = CoronaSun targeted:on name:"myName"pos:[0,0,4000])
_Sun.Target.pos = [0,20,0] – => give an error because _SunTarget stay undefined

Good solution :
_Sun = CoronaSun targeted:off name:"myName"pos:[0,0,4000])
_Sun.targeted = true
_Sun.Target.pos = [0,20,0] – => Works perfectly

I hope it can help someone, because i search a long time where was my mistake

Is there any specific reason why you are using Corona 4 HF1 instead of Corona 5? Could you please check if the same thing happens in Corona 5? Download | My Chaos

Hello,

Still working with corona 4 because started production under this version still running @the moment, so we are waitting delivry and next update to update workstation and renfarms.