Author Topic: Corona & maxscript : Corona Sun  (Read 2262 times)

2020-03-16, 00:40:53

Okenite

  • Active Users
  • **
  • Posts: 13
    • View Profile
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




2020-03-16, 17:37:15
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13665
  • Marcin
    • View Profile
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? https://corona-renderer.com/download
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2020-03-16, 21:33:38
Reply #2

Okenite

  • Active Users
  • **
  • Posts: 13
    • View Profile
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.