Author Topic: Corona Sun&Sky one click button  (Read 967 times)

2018-11-08, 14:47:46

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
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.

Code: [Select]
(
( 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
)
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2018-11-09, 08:48:15
Reply #1

Frood

  • Active Users
  • **
  • Posts: 1921
    • View Profile
    • Rakete GmbH
Change the first line to:

Code: [Select]
( s=coronasun isSelected:on; s.pos=[100,100,100]; s.targeted=true; s.target.pos=[0,0,0])


Seems to be a consequence of the daylight system fix.


Good Luck



Never underestimate the power of a well placed level one spell.

2018-11-09, 09:38:43
Reply #2

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Aaand it's working again, thank you very much!
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures