Using Selective Lights

 
 
 

When you create a light, it affects all visible objects in the scene by default. However, every light has a selective property that you can use to make it affect, or not affect, a designated group of objects called Associated Models. This can help reduce rendering time by limiting the number of calculations per light.

Each light in a scene has an Associated Models group, which contains a copy of all of the light's associated objects. You can find the Associated Models group under any light's Light node in the explorer.

NoteWhen you merge one scene into another, light associations are not updated automatically. If you have selective lights, you should modify their lists of associated objects to get the effect you want. For more information about merging scenes, see Merging Scenes [Data Management].

Inclusive vs. Exclusive Lights

You can set a light's selective property to be Inclusive or Exclusive, depending on how you want the light to affect its associated models.

  • Exclusive illuminates every object except for those in the light's Associated Models group.

  • Inclusive illuminates every object defined in the light's Associated Models group.

To change a light's selective property

  1. Select a light and press Enter on the keyboard to open its property editor.

  2. On the General tab, set the Selective Light property to either Inclusive or Exclusive.

  3. Every light's selective property is set to Inclusive by default, but you can change it to exclusive, and back again, as needed.

A

A simple scene illuminated by a point light. None of the geometric objects are included in the light's Associated Models' list, so they are not affected by the light's selective property.

B

The King piece (center) has now been added to the light's Associated Models list, thereby making it affected by the light's selective property.

In this example, the light has been defined as Exclusive, thereby not illuminating the objects on the light's Associated Models list.

C

This scene shows the light when set to Inclusive. Now the light source affects only the objects listed in the Associated Models list (just the King piece) and ignores the rest.

Associating Objects with Lights

There are two ways to associate objects with lights. You can either select objects and lights in the viewports or you can drag and drop objects in the explorer.

NoteThe Associated Models group can only contain geometric objects. You can insert hierarchies, models, groups, or as many geometric objects as you wish.

Using the Viewports

Associating objects with lights using the viewports is a simple matter of picking objects and lights. You can either select a light and then pick objects to place in its Associated Models group or you can select an object and then pick the lights into whose Associated Models groups you want to place it.

  1. Select a single light or a single object.

  2. From the Render toolbar, choose Get Primitive Light Associate Light to begin a pick session.

  3. In the viewports, do one of the following:

    • If you selected a light, left-click any objects that you want to associate with it. The objects are placed in the light's Associated Models group.

    • If you selected an object, left-click the lights with which you want the object to be associated. The object is placed in each selected light's Associated Models group.

  4. Right-click an empty area of a viewport to end the pick session.

Using the Explorer

Associating objects with lights using the explorer is a matter of dragging and dropping objects into a light's associated models group. You may find this method to be faster when you want to associate a hierarchy, or a large number of objects, with the same light since you can multi-select them and drag them all at once.

  1. Select a light in the viewport.

  2. Open an explorer that displays both objects and lights (a Scene scope is useful).

  3. Expand the Light node of the light that you want to associate your object(s) with. The light's last node is the Associated Models group.

  4. Click and drag any of your scene's objects into the light's Associated Models group.

Disassociating Objects from Lights

You can disassociate objects from lights using the same tools that you use to associate them; either pick objects and lights in the viewports or using the explorer.

Using the Viewports

In the viewports, you disassociate objects from lights almost the same way that you associated them in the first place:

  1. Select a single light or a single object.

  2. From the Render toolbar, choose Get Primitive Light Associate Light to begin a pick session.

  3. In the viewports, do one of the following:

    • If you selected a light, middle-click any objects that you want to disassociate with from. The objects are removed from the light's Associated Models group.

    • If you selected an object, middle-click the lights from which you want the object to be disassociated. The object is removed from each selected light's Associated Models group.

  4. Right-click an empty area of a viewport to end the pick session.

Using the Explorer

If you decide that you no longer want an object to be affected by a selective light, do the following:

  1. Expand the light's Associated Models group in the explorer.

  2. Right-click the object you wish to remove from the Associated Models group and choose Remove from Group from the menu.