View Full Version : Align lights to the normal of an object?

04 April 2006, 03:10 PM
I am trying to align a set of lights to to the normals of a sphere. Can anyone give me information on how this can be done or is there a script somewhere.


04 April 2006, 07:18 PM
Which program are you using?

04 April 2006, 03:21 PM
I'm Using Maya 6.0

04 April 2006, 08:42 AM
why you want to do that? maybe we can offer a work around for your idea.

04 April 2006, 07:10 PM
suposely you want to make a light dome (useless since you can achieve the same effect with mentalray using FG + the IBL node), there are some scripts that automate the creation of it.

If you want to do it manualy, then create a light and position it on 0 0 1 xyz then move it's pivot point to 0 0 0 xyz (press the Insert key and hold x to snap to grid). Now select the light and press SHIFT + D to duplicate with transform and rotate the new light on x with about 30 degrees (less for more dense placement). Now that the transform was recorded by maya, press shift+d several more times to duplicate the lights in a circular shape (180/30-2 for the 30 degrees). Now select all the new lights (less the light on the top) then group them and duplicate it and rotate horizontally several times to fill the spherical shape. Finaly group all the lights and position/scale the group.

sorry for this long text and hope you picked the idea :)

05 May 2006, 10:40 PM
Thanks Guys For The Reply And Sorry For The Delayed Response, I'll Give It Ago.

CGTalk Moderation
05 May 2006, 10:40 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.