1. #1
    Senior Member User Gallery
    Join Date
    Apr 2001
    Location
    In the Ozone
    Posts
    2,280

    Default Light Widget Version 1.0

    Here is a update to an old script. Alot of 3D programs allow you to position your lights inside the scene using a visable control of some sort. This script provides this functionality to Zbrush.

    lightwidget.JPG

    To use it, load the Script, once loaded it provides a quick tool button in the Ztools menu.

    1. Press "Select" this menu shows what lights are currently selected in your current Light setup.
    2. Press the Light that you wish to Position.
    3. The script will create a 3D sphere (if one isn't already present) and will place it at the current location that the light exists on the canvas. It will also color the light to the color of the selected light.
    4. Manuver the sphere on the canvas and position it at your desired X Y Z location.
    5. Press the "Position" button, this will set the currently selected light at that location of the sphere.
    6. Repeat the above steps to position all the lights in your current light palette.

    The display windows in the script will also report the Type, Intensity and Radius of each selected light for your information. Use the Light Pallette to modify or change any of the light parameters, add new lights etc... Then use the script to precisely position them in your scene.

    Also I might mention that you can not position "SUN" type lights using this method, it will only position the Spot, Glow, and Point type lights.
    Attached Files Attached Files

  2. #2
    Senior Member User Gallery
    Join Date
    Jun 2001
    Location
    Venezuela
    Age
    63
    Posts
    6,453

    Default Hi Digits ¡

    Thanks again for this usefull tool¡¡¡ like your Zifclick¡¡
    Congratulations
    Andreseloy

  3. #3
    Moderator User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    7,652

    Default

    Cool script. Thanks!

  4. #4
    Senior Member User Gallery
    Join Date
    Apr 2001
    Location
    ITALY
    Posts
    1,270

    Default Thanks

    Hi Digit,
    i know this useful script and i'm happy you post more often.
    Thanks again.

    cameyo

  5. #5
    Senior Member User Gallery
    Join Date
    Dec 2003
    Location
    Chicago
    Posts
    5,537

    Default

    You musta read my mind, I was just looking around for some of your old widgets to see if they worked at all as I thought there was one for lights!

    Great timing and great script!!



    Thank you!!

  6. #6
    Senior Member User Gallery
    Join Date
    Oct 2001
    Location
    Ok, USA
    Age
    62
    Posts
    1,503

    Default

    Thanks Digits for your time to do this for us. I know it will come in handy for me.

  7. #7
    Senior Member User Gallery
    Join Date
    Feb 2002
    Location
    France
    Posts
    14,107

    Cool Fiat Lux


    Pilou
    Is beautiful that please without concept! ( Me and maybe also E Kant)
    Pilou's Galerie Pilou's Tips Tuts Page
    Cameyo's ZPlace Art Surfing Albums
    Dedicaces Perpetual Challenges

  8. #8
    Senior Member User Gallery
    Join Date
    Mar 2005
    Location
    Manhattan, New Yotk
    Posts
    4,492

    Default

    I tried it today to overcome the absolutely NERVING point light positioning.

    Unfortunately the script does not work right for me.

    I have 1 Sun and 1 point light.

    #1 is the sun and #2 is the point.

    I have to select light 3 to have the sphere show up. By then the script already has selected 4 or five lights in the light tab. When I position the sphere and hit the Position button, nothing happens. The sphere is still there and lighting does not change (Best Render)...

    What am I doing wrong?
    LemonNado

  9. #9
    Senior Member User Gallery
    Join Date
    Apr 2001
    Location
    In the Ozone
    Posts
    2,280

    Default

    Heya Lemonado

    Aye, it is a bit confusing I realize, here is the scoop

    Since my script does not work with sun lights and the first two lights in the Light palette are sun type by default the Select Menu only shows the lights following Light 2. (hope that makes sense)

    Try this

    Note you have to set up your lights in the Light Palette first.

    1. In the light palette select Light #3 and set it to be a point light. Adjust the intensity, color, Radius etc...
    2. In the light Widget press the Select Button. You should see the first Icon selected (First Non-Sun light)
    3. Press the Icon and the script will give you an object which you can place in the scene
    4. Use the Gyro to position the object to a location on the canvas you wish your light to illuminate from.
    5. Press the Position button and the script will automatically set the position sliders in the Light Palette.

    If you have set up more lights continue to select each one and position them. Remember you have to set them up first in the Light Palette.


    Hope this helps!

  10. #10
    Senior Member User Gallery
    Join Date
    Jul 2005
    Posts
    115

    Default

    hey digits following your explanations but still no differences showed in my renders. Maybe a little tut will be great.It sounds like a useful tool. And by the way no button showed up on my tool list need to load the script if I want the light widget to appear.
    Thanks in advance.
    Matt

  11. #11
    Senior Member User Gallery
    Join Date
    Apr 2001
    Location
    In the Ozone
    Posts
    2,280

    Default

    Hi Mathiew77

    Could be that you are trying to use Sun type lights, which the script can't position. Make sure that they are Glow, Spot or Point type lights. Also I have noticed there is a little confusion about which light in the script controls which light in the Light Palette. I have attached a image showing that the first two lights in the Zbrush Light Palette are ignored as they are normally Sun type lights. The first button in the Script menu is actually Light #3. Hopefully the image will make that clear.

    Also, as I am sure you know, you must use Best Render to see the actual lights on your canvas.

    I made a new zip file to make the script a plugin. Extract the contents of the Zip file into your Startup/Zplugin directory if you want the script to start as a plugin.

    When I find some time I plan to make this script easier to use. Hope this helps!

    Also, if you are using Point lights don't forget that you can make them Radial and control the falloff with the Radius setting, otherwise thier effect may be hard to see in your scene.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	lightexample.JPG 
Views:	165 
Size:	40.9 KB 
ID:	22501  
    Attached Files Attached Files
    Last edited by Digits; 11-29-05 at 06:26 AM.

  12. #12
    Senior Member User Gallery
    Join Date
    Jul 2005
    Posts
    115

    Default

    thanks Digit for your help I will try again very soon.
    PS: this is an excellent plugin not to leave on the side, controlling the lights is one of the most important part of rendering.

    Mathieu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •