Announcement

Collapse
No announcement yet.

Create a sun light - script help needed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Create a sun light - script help needed

    Hi,

    I'm not happy with the Rhino sunlight command, because the placement isn't the best. Today I got the idea to create my own button, but something dosn't work. Here my raw button script, that show the idea:

    _DirectionalLight
    _sellast
    _visMakeSunLight

    The problem is, that sellast dosn't wait for the creation of the directional light. Doe's anybody know, how I can solve the problem? Damien?

    Ciao,
    Micha
    www.simulacrum.de - visualization for designer and architects

  • #2
    Re: Create a sun light - script help needed

    You're gonna kick yourself for this one Micha

    _DirectionalLight _Pause _Pause
    _sellast
    _visMakeSunLight
    Damien Alomar<br />Generally Cool Dude

    Comment


    • #3
      Re: Create a sun light - script help needed

      visMakeSunLight?!?!? Awesome! Is there a way we can "un-make" a sunlight? I frequently go back & forth between physical & default camera setups so this would be pretty nifty if I could use the same directional light.

      Comment


      • #4
        Re: Create a sun light - script help needed

        Here you go. This basically replaces the Directional Light with a new one. There's no way to test whether its really a sunlight, but its close enough. Just save this in a location that you won't move around, then drag and drop onto a running instance of Rhino. This adds the alias "visSunToDir" and will run the script for you. Enjoy

        http://www.box.net/shared/iskhgjed99
        Damien Alomar<br />Generally Cool Dude

        Comment


        • #5
          Re: Create a sun light - script help needed

          Thank you Damien, both works nice.
          www.simulacrum.de - visualization for designer and architects

          Comment


          • #6
            Re: Create a sun light - script help needed

            Your welcome
            Damien Alomar<br />Generally Cool Dude

            Comment


            • #7
              Re: Create a sun light - script help needed

              Sah-weet!

              Comment

              Working...
              X