Start with this task
How do you isolate the light sources for compositing?
A concert stage with three suspended light rings. Compare the isolated emission pass with the composited stage and floor reflections.
Blender 5.3.0
No model or texture download is needed. Use the lesson below to build this scene in three passes, from the first shapes to the camera view. Pause between passes to inspect the model and materials.
Select a product name for its manual. In Blender, open Edit → Preferences → Add-ons and enable the products listed here.
Save your current file and choose File → New → General. Open the Scripting workspace, choose New in the Text Editor, then expand the scene recipe below. Copy all of it and paste it into the Text Editor.
import bpy
import importlib
import math
import random
from math import cos, sin, pi, tau
from mathutils import Vector, Quaternion
def product_module(path):
base, _, sub = path.partition('.')
actual = next((a.module for a in bpy.context.preferences.addons if a.module.rsplit('.', 1)[-1] == base), None)
if actual is None:
raise RuntimeError('Enable the required SmartTools extension in Preferences: ' + base)
return importlib.import_module(actual + ('.' + sub if sub else ''))
def product_symbol(path, name):
module = product_module(path)
if hasattr(module, name):
return getattr(module, name)
return importlib.import_module(module.__name__ + '.' + name)
def drawing(scene):
def bx(name, loc, dim, m, r=0.04):
bpy.ops.mesh.primitive_cube_add(size=1, location=loc)
o = bpy.context.object
o.dimensions = dim
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
return finish(o, name, m, r)
def finish(o, name, m, r=0):
o.name = name
o.data.materials.append(m)
if r:
be = o.modifiers.new('Highlight radius', 'BEVEL')
be.width = r
be.segments = 4
be.harden_normals = True
o.modifiers.new('Planar normals', 'WEIGHTED_NORMAL')
return o
def line(name, coords, r, m):
cu = bpy.data.curves.new(name, 'CURVE')
cu.dimensions = '3D'
cu.resolution_u = 16
cu.bevel_depth = r
cu.bevel_resolution = 4
sp = cu.splines.new('BEZIER')
sp.bezier_points.add(len(coords) - 1)
for (p, c) in zip(sp.bezier_points, coords):
p.co = c
p.handle_left_type = 'AUTO'
p.handle_right_type = 'AUTO'
o = bpy.data.objects.new(name, cu)
scene.collection.objects.link(o)
cu.materials.append(m)
return o
def mat(name, c, metal=0, rough=0.4, em=0):
m = bpy.data.materials.new(name)
m.use_nodes = True
b = m.node_tree.nodes.get('Principled BSDF')
b.inputs['Base Color'].default_value = (*c, 1)
b.inputs['Roughness'].default_value = rough
b.inputs['Metallic'].default_value = metal
if em:
b.inputs['Emission Color'].default_value = (*c, 1)
b.inputs['Emission Strength'].default_value = em
return m
def aim(o, p):
o.rotation_euler = (Vector(p) - o.location).to_track_quat('-Z', 'Y').to_euler()
def light(name, pos, target, power, col, w, h=None):
d = bpy.data.lights.new(name, 'AREA')
d.energy = power
d.color = col
d.shape = 'RECTANGLE'
d.size = w
d.size_y = h or w
o = bpy.data.objects.new(name, d)
scene.collection.objects.link(o)
o.location = pos
aim(o, target)
def shoot(pos, target, scale, lens=None):
cd = bpy.data.cameras.new('Art direction')
cam = bpy.data.objects.new('Art direction', cd)
scene.collection.objects.link(cam)
scene.camera = cam
cam.location = pos
aim(cam, target)
if lens:
cd.lens = lens
else:
cd.type = 'ORTHO'
cd.ortho_scale = scale
bpy.context.view_layer.update()
cd.smart_camlight_settings.rig_target_distance = (Vector(target) - cam.location).length
assert bpy.ops.smart_camlight_suite.create_camera_rig(camera_name=cam.name) == {'FINISHED'}
assert any((c.type == 'TRACK_TO' and c.target for c in cam.constraints))
world = bpy.data.worlds.new('Ambient')
scene.world = world
world.use_nodes = True
world.node_tree.nodes['Background'].inputs[0].default_value = (0.26, 0.34, 0.44, 1)
world.node_tree.nodes['Background'].inputs[1].default_value = 0.27
scene.render.engine = 'CYCLES'
scene.cycles.samples = 24
scene.cycles.use_denoising = True
scene.render.threads_mode = 'FIXED'
scene.render.threads = 5
scene.render.resolution_x = 1120
scene.render.resolution_y = 730
scene.render.resolution_percentage = 100
scene.render.image_settings.color_mode = 'RGB'
def cone(name, loc, r1, r2, h, m, segments=16):
bpy.ops.mesh.primitive_cone_add(vertices=segments, radius1=r1, radius2=r2, depth=h, location=loc)
return finish(bpy.context.object, name, m)
def model_line(name, points, r, m):
return line(name, points, r, m)
planner = product_symbol('smart_render_suite', 'planner')
comp = product_symbol('smart_composite_suite', 'builders')
planner.apply_pass_bundle(scene, 'COMPOSITE')
assert scene.view_layers[0].use_pass_emit
floor = mat('Stage lacquer', (0.012, 0.015, 0.026), 0.57, 0.27)
ribs = mat('Anodised truss', (0.024, 0.03, 0.043), 0.74, 0.24)
lilac = mat('Lilac LED', (0.5, 0.13, 0.98), 0.12, 0.3, 4.0)
amber = mat('Amber LED', (1, 0.23, 0.035), 0.09, 0.28, 4)
cyan = mat('Ice LED', (0.08, 0.65, 0.94), 0.12, 0.32, 3)
bx('Black-box stage', (0, 0, -0.21), (28, 18, 0.4), floor, 0.1)
bx('Backdrop', (0, 3.6, 3), (25, 0.23, 8), floor, 0)
yield
for j in range(3):
bx('Performance riser', (0, 1.8 - j * 0.6, 0.38 - j * 0.12), (8.2, 0.72, 0.22), ribs, 0.03)
bx('Riser front strip', (0, 1.42 - j * 0.6, 0.4 - j * 0.12), (8.0, 0.027, 0.027), lilac, 0.01)
for j in range(3):
xx = (j - 1) * 2.61
cy = 2.11 - 0.24 * (j % 2)
zz = 2.12 + 0.22 * (j % 2)
for (radius, material, thick) in [(1.41, ribs, 0.11), (1.33, amber if j == 1 else lilac, 0.047), (1.19, cyan if j == 1 else amber, 0.025)]:
model_line('Suspended light ring', [(xx + radius * cos(tau * i / 96), cy, zz + radius * sin(tau * i / 96)) for i in range(97)], thick, material)
for side in (-1, 1):
for i in range(7):
x = side * (4.18 + i * 0.29)
h = 1.5 + i * 0.42
bx('Vertical light wing', (x, 1.82, h * 0.5), (0.09, 0.08, h), ribs, 0.02)
bx('Wing LED', (x, 1.76, h * 0.5), (0.036, 0.025, h), cyan if i % 2 else lilac, 0.012)
for j in range(3):
bx('Speaker cabinet', (side * 5.62, 1.05, 2.53 + j * 0.43), (0.64, 0.46, 0.39), ribs, 0.04)
light('Floor wash', (side * 3.1, -0.6, 0.35), (side * 2, 2, 2.7), 360, (0.47, 0.12, 0.91) if side < 0 else (0.96, 0.23, 0.08), 2.0)
light('Cabinet rim', (0, -2, 5), (0, 1, 1), 240, (0.63, 0.75, 1), 4)
shoot((0.65, -11.8, 4.0), (0, 1.5, 1.97), 1, 33)
yield
tree = bpy.data.node_groups.new('Orbit: stage finish', 'CompositorNodeTree')
scene.compositing_node_group = tree
tree.interface.new_socket(name='Image', in_out='OUTPUT', socket_type='NodeSocketColor')
src = tree.nodes.new('CompositorNodeRLayers')
out = tree.nodes.new('NodeGroupOutput')
emission = next((s for s in src.outputs if s.name in ('Emit', 'Emission')))
tree.links.new(emission, out.inputs['Image'])
glare = tree.nodes.new('CompositorNodeGlare')
comp._configure_glare(glare, 'FOG_GLOW', 0.8, 0.5, 'HIGH')
tree.links.new(src.outputs['Image'], glare.inputs['Image'])
tree.links.new(glare.outputs['Image'], out.inputs['Image'])
yield
course_key = 'SmartTools lesson / orbit-stage'
session = bpy.app.driver_namespace
current = session.get(course_key)
if not current or current[0] != bpy.context.scene:
for required in ['smart_camlight_suite', 'smart_composite_suite', 'smart_render_suite']:
product_module(required)
scene = bpy.data.scenes.new('Study / orbit-stage')
bpy.context.window.scene = scene
current = [scene, drawing(scene), 0]
session[course_key] = current
if current[2] < 3:
next(current[1])
current[2] += 1
current[0]['Lesson step'] = current[2]
bpy.context.view_layer.update()
Click ▶ Run Script at the top of the Text Editor once per step, three times in total. The first click opens a separate study scene. Between clicks, hover over the 3D Viewport and press Home to frame the objects.

Choose View → Cameras → Active Camera and compare the framing with the image above. Choose Render → Render Image (F12), then Image → Save As in the render window to save a PNG. Save the .blend file to keep the editable scene.
In Compositing, follow Image from Render Layers into Glare. Select the Glare node and press M to mute it, then render to compare the halo around the rings.
If you close the file between steps, start the lesson again in a new file.
Enable the emission pass to check the shapes of the sources, then add a subtle glow around the rings.
Smart Render enables the emission pass so the rings can be inspected on their own. Smart Composite applies glow to the beauty render, retaining the floor reflections in the final image.
Build Output Nodes for Each Pass with "Prepare Render Elements"Applied the compositing pass bundle and rendered emission on its own.
The same stage is shown as emission, normals and beauty. Enable the compositing passes together in Smart Render to get the light rings and surface directions as separate images.
A node that writes the view layer's images to files is created in the previously empty compositor. The "Beauty Only" button adds 1 link to the node, and loading "Composite" with "Quick Set" adds the corresponding links. The input names on the node on the right (Beauty_####, ZDepth_####, and so on) become the file names as they are, with the frame number in place of ####. The look of the 3D Viewport does not change.
View the captured exampleFog Glow softens the edges of the emissive strips.
SmartTools Composite walkthrough ↗All controls and documentationIn the Before image, Suzanne's outline is crisp. In the After image, a round halo of light bleeds around the outline, and color also spills onto the edges of the shadow.
View the captured exampleA target-tracking camera keeps the process and final views aligned.
SmartTools CamLight walkthrough ↗All controls and documentationSales open January 1, 2027. One-time prices in USD. Local taxes may apply.
How do you isolate the light sources for compositing?
Total for these individual tools $52
Included tools used here
SmartTools Render · SmartTools Composite · SmartTools CamLight
Total with this bundle: $69
For just the listed tools, individual purchases cost $17 less.
Also in the bundle
SmartTools Paint · SmartTools Shader