Announcement

Collapse
No announcement yet.

Rectangular light manipulation script

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

  • Rectangular light manipulation script

    Newsgroup: rhino
    Subject: Re: Wish: Rectangular Light manipulation
    Date: Thu, 08 Feb 2007 08:08:03 -0800
    From: Pascal Golay <pascal@mcneel.com>
    Newsgroups: rhino

    Hi Micha- I had similar frustration with rectangular lights. You can
    try this script I bludgeoned together and see if it makes life a little
    easier (V4 only I'm afraid). The rather severe limitations are:

    -that in order for any of the manipulation commands to work, you must
    use then on lights made with PlaceAreaLight

    -that the lights have permanent point objects attached to them- there is
    currently not enuough info in an area light to be able to turn these on
    as needed.

    -These points are somewhat fragile in their connection to the light-
    that is, you can do selPt and move them without moving the light and
    they will no longer behave correctly- they are only grouped with the light.



    Drag and drop the rvb over a Rhino 4 window and it will register some
    new aliases:

    1.PlaceAreaLight - asks for a size, a target point and a light center
    point and places a square rectangular light oriented to shine from the
    center point to the target point. The light has 4 points attached to it
    that act as handles for the following 'commands':

    2. OrientAreaLight - lets you grab one of the points on the custom
    rectangular light and move it around so that it stays pointing at its
    target- on a sphere essentially. If you pick any of the points on the
    light the sphere is centered on the target point; if you picj the target
    point then the sphere is centered on the middle of th light plane and
    the target wobbles.

    3. SlideAreaLight - pick edge points to slide sideways in the plane of
    the light, or pick the center point to slide in and out on the target,
    normal to the plane.

    4. ResizeAreaLight - pick either of the edge points to resize the rectangle.

    5. RotateAreaLight - Pick either edge point and pivot on a axis between
    the center point and the other edge point.

    -
    -Pascal Golay
    pascal@mcneel.com
    www.rhino3d.com
    http://en.wiki.mcneel.com/default.as...RhinoHome.html



    Micha wrote:
    > Hello McNeel team,
    >
    > I very much miss a control point edit of source mid point and target of rectangular
    > lights. Also for manipulation is necessary to get an object snap for center
    > and corners of the light like the planar mapping widget supported. At the
    > moment the manipulation of rectangular lights is very difficult. Maybe other
    > tools can be integrated for manipulation of direction, size and rotation.
    >
    > Regards,
    > Micha
    ... after some email communication Pascal give me a refined and debugged version. Now all commands beginn with "Arealight..". The script is for Rhino 4 only.

    -Micha

    http://news2.mcneel.com/scripts/dnew...m=250455&utag=
    www.simulacrum.de - visualization for designer and architects

  • #2
    Re: Rectangular light manipulation script

    Thats great, I've been using a dummy rectangle to do all of my transformations (which at times haven't been pretty). This will definitely help with editing rec lights.
    Damien Alomar<br />Generally Cool Dude

    Comment

    Working...
    X