Light and Shadow Linking

Choose which objects a light lights and which objects cast its shadow. You can do it by pointing at objects during Adjust Light, from a panel on the light, or from a panel on the object.

How linking works

Light linking is Blender's own feature; Light Wrangler gives you faster ways to set it up. Each object can be in one of three states for a light:

Included
The object receives this light.
Excluded
The object ignores this light.
Not linked
The object is not on the light's list.

Blender's rule: as soon as one object is included, the light lights only the included objects, and every object not on the list goes dark for it. With only excluded objects on the list, the light lights everything except them. An empty list means the light lights everything.

Shadow linking works the same way for which objects cast this light's shadow.

Linking works in Cycles (and Reblend), EEVEE and Octane (Octane Edition). In Octane at most 19 lights in a file can use light linking (Blender reports Octane allows at most 19 light-linked lights), and shadow linking is not available. In other engines Blender reports Light linking is only available in Cycles, EEVEE, or Octane render engines. Linking set up in Cycles carries over when you switch the scene to Octane.

L and Shift+L in Adjust Light

During Adjust Light, point at an object and press L. Each press moves that object one step through the cycle for this light:

  1. First press: included. Blender reports <object> now receives light from <light>, or <object> is now the only object that receives light from <light> when it is the first one, as a reminder that everything else now goes dark for this light.
  2. Second press: excluded. <object> now ignores light from <light>.
  3. Third press: not linked. <object> removed from light linking collection for <light>. The next press starts again at included.

Shift + L does the same for shadow linking: <object> now casts shadow from <light>, then <object> no longer casts shadow from <light>, then <object> removed from shadow linking collection for <light>.

  • The object briefly flashes in the viewport: a grey outline when it is included, a black one when it is excluded, nothing when it is removed. Turn this off with Show Light Linking Feedback in the preferences.
  • The Properties editor switches to the light's data tab, where the Light Linking panel shows the result.
  • With nothing under the cursor, Blender reports No object under mouse or no active light.
  • L works on lights, not on flags.
  • While you orbit live the cursor is hidden, so the help panel hides the L rows. Pause Orbit to point at an object.
Esc undoes linking, right-click does not. Cancelling Adjust Light with Esc puts the light's linking back exactly as it was when you started: the same objects and collections, each included or excluded as before. Cancelling with Right Mouse undoes everything else but keeps your linking changes.

The Light Linking panel on a light

To see and edit everything one light touches, select the light and open the light's data tab in the Properties editor. The Light Linking panel answers "what does this light light?".

The Light Linking panel of a spot light listing Floor, Plinth and Subject, with Floor switched off and greyed, the summary line Lights only these 2, the add field with its eyedropper, and a collapsed Shadow Linking section showing 1.
Light Linking on a spot light: two objects lit, one switched off, and one object in Shadow Linking.
Summary line
Says what the light actually does: Lights everything, Lights only these 3, or Lights everything except these 2.
List
Every linked object and collection, sorted by name. Click a name to flash that object in the viewport, without changing the selection. The checkbox switches it between included and excluded (excluded rows are greyed). The X removes it from the list. Long lists show 10 rows and an N more line that opens the rest.
Add field
Type or search an object's name to include it.
Eyedropper
Starts the Link Picker (below), to click objects one after another.
Dropdown arrow
Link Selected (with the number of selected objects) and Exclude Selected for the objects selected in the viewport; Link Collection "<name>" for the collection that is active in the Outliner; Select Linked to select the objects on the list while the light stays active; Clear All to empty the list so the light lights everything again.
Shared with
When other lights use the same linking list, a line reads Shared with N other light(s). Editing the list changes all of them. The button on that line, and Make Single-User in the dropdown, give this light its own copy.

The Shadow Linking sub-panel below it works the same way for shadows. It starts collapsed and shows its number of entries in its header. It is not shown in Octane. Neither panel appears for flags and reflectors.

The Light Linking panel on an object

When an object renders dark and you cannot see why, select it and open the Object tab in the Properties editor. Its Light Linking panel answers "which lights reach this object?".

Summary line
Lit by every light, Not lit by 2 of 5 lights, Not lit by any light, or No other lights in the scene. The count includes lights that leave the object dark without naming it: lights that include other objects only. That is the usual reason an object goes black for no visible reason.
List
The lights that include or exclude this object, sorted by name. Click a light's name to select it. The checkbox and the X work as on the light's panel.
Light field, Link
To link the selected objects to a light, pick the light in the field and click Link to include them, or the button next to it to exclude them.

Its Shadow Linking sub-panel does the same for shadows (Casts shadow from every light, No shadow from 1 of 5 lights, Casts no shadow at all).

Link Picker

To link many objects quickly, click the eyedropper in the light's Light Linking (or Shadow Linking) panel. Then click objects in the viewport or the Outliner. Each click moves the object one step through the same cycle as L: included, excluded, not linked.

  • In the Outliner you can also click a collection to link the whole collection in one click. The viewport cannot do that.
  • A blue frame marks the areas you can click in. The help panel from Adjust Light shows the picker's keys, and Q hides it here too.
  • The Properties editor stays on the light while you pick, so you see the list grow.
  • Navigating the viewport with the middle mouse button, the wheel or the trackpad keeps working while you pick.
Left Click
Toggle Linking (or Toggle Shadow Linking) for the clicked object or collection.
Esc, Right Click or Enter
Finish. Blender reports the number of picks, as Picked N object(s). Clicking anywhere outside the viewport's main area and the Outliner also finishes and does what you clicked.
Q
Hide or show the help panel.

Objects flash in the viewport when you include or exclude them with the panels' buttons and menu entries and with the picker, the same as with L.

Still stuck? or ask in the Discord community.