Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: romullus on 2015-07-18, 20:13:18

Title: New sun and maxscript
Post by: romullus on 2015-07-18, 20:13:18
I'm one of those old sun worshipers that likes it more over new one. But after seeing Rawa's videos i could change my mind especially if someone helps to solve my problem. This line of code works great with old sun, but is useless with new one:

Code: [Select]
coronasun isstandalone:true displaySize:150.0 pos:[0.0,0.0,0.0] isSelected:on
I'd be very grateful should someone modify it to work with new sun. Basically i want that it'd create sun object at scene origin with zenith angle set to 45 deg.
Title: Re: New sun and maxscript
Post by: ecximer on 2015-07-19, 13:00:49
Hi, Romullus
it's easy and simply :)
Code: [Select]
(d=dummy(); s=coronasun isSelected:on target:d; d.name=s.name+".target"; s.pos=[100,100,100])
Title: Re: New sun and maxscript
Post by: romullus on 2015-07-19, 15:23:10
I knew i can count on you, thank you very much! :]