Author Topic: New sun and maxscript  (Read 1999 times)

2015-07-18, 20:13:18

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8833
  • Let's move this topic, shall we?
    • View Profile
    • My Models
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.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-07-19, 13:00:49
Reply #1

ecximer

  • Active Users
  • **
  • Posts: 286
  • Scriptobot
    • View Profile
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])
sorry for my english

2015-07-19, 15:23:10
Reply #2

romullus

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