Start with this task
Preserve a production note during handoff
Brass joints, a deep-green enamel shade and a drawing lit on the table form a finished prop shot.
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.
SmartTools Hub is used at handoff. It does not produce the lamp geometry or its lighting.
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):
builders=product_module('smart_shader_suite.builders')
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 cyl(name, loc, r, d, m, rot=(0, 0, 0), edge=0.015):
bpy.ops.mesh.primitive_cylinder_add(vertices=80, radius=r, depth=d, location=loc, rotation=rot)
o = bpy.context.object
for f in o.data.polygons:
f.use_smooth = len(f.vertices) == 4
return finish(o, name, m, edge)
def rod(name, a, b, r, m):
v = Vector(b) - Vector(a)
o = cyl(name, (Vector(a) + Vector(b)) / 2, r, v.length, m, edge=min(r / 3, 0.024))
o.rotation_euler = v.to_track_quat('Z', 'Y').to_euler()
return o
def lathe(name, loc, profile, m, scale_y=1):
verts = []
faces = []
n = 96
for (r, z) in profile:
for i in range(n):
a = tau * i / n
verts.append((r * cos(a), scale_y * r * sin(a), z))
for j in range(len(profile) - 1):
for i in range(n):
faces.append((j * n + i, j * n + (i + 1) % n, (j + 1) * n + (i + 1) % n, (j + 1) * n + i))
return mesh(name, loc, verts, faces, m)
def mesh(name, loc, verts, faces, m):
me = bpy.data.meshes.new(name)
me.from_pydata(verts, [], faces)
me.update()
o = bpy.data.objects.new(name, me)
scene.collection.objects.link(o)
o.location = loc
for f in me.polygons:
f.use_smooth = True
return finish(o, name, m)
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 shader(name, fn, c, **props):
m = bpy.data.materials.new(name)
getattr(builders, fn)(m, dict(base_color=[*c, 1], **props))
assert any((n.type == 'BSDF_PRINCIPLED' for n in m.node_tree.nodes))
return m
def brushed(name, c):
return shader(name, 'build_brushed_metal', c, roughness=0.29, anisotropy=0.48, brush_scale=145, detail_bump=0.014)
def lacquer(name, c):
return shader(name, 'build_auto_clearcoat', c, roughness=0.24, metallic=0.18, clearcoat=0.8, clearcoat_roughness=0.14, flake_scale=240, flake_bump=0.008)
def geo_ring(name, loc, major, minor, m):
data = vars(product_module('smart_geometry_suite.max_procedural_primitives.mesh_generators'))['make_torus'](dict(radius1=major, radius2=minor, segments=112, sides=16))
return mesh(name, loc, data['verts'], data['faces'], 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 text_obj(name, body, loc, size, m, rot=(pi / 2, 0, 0), align='CENTER'):
cu = bpy.data.curves.new(name, 'FONT')
cu.body = body
cu.size = size
cu.align_x = align
cu.align_y = 'CENTER'
cu.extrude = 0.001
o = bpy.data.objects.new(name, cu)
scene.collection.objects.link(o)
o.location = loc
o.rotation_euler = rot
cu.materials.append(m)
return o
def studio(bg, lightcol=(1, 0.85, 0.65)):
bx('Seamless studio floor', (0, 0, -0.24), (200, 200, 0.45), mat('Set', bg), 0)
light('Large diffusion', (-4.4, -5, 7), (0, 0, 1.6), 640, (1, 0.91, 0.8), 5)
light('Warm rim', (1.3, 3, 5), (0, 0, 1.5), 760, lightcol, 3.8)
light('Cool strip', (4, -1.2, 3.1), (0, 0, 1.4), 300, (0.6, 0.82, 1), 1.5, 4)
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'
black = mat('Graphite', (0.016, 0.022, 0.029), 0.55, 0.28)
gold = brushed('Champagne brass', (0.61, 0.36, 0.13))
studio((0.075, 0.092, 0.085), (0.94, 0.5, 0.22))
green = lacquer('Forest enamel', (0.035, 0.19, 0.139))
paper = mat('Drawing stock', (0.76, 0.72, 0.54), 0, 0.8)
cyl('Lamp base', (-0.44, 0.28, 0.105), 0.49, 0.19, green)
geo_ring('Foot bead', (-0.44, 0.28, 0.19), 0.42, 0.021, gold)
pts = [(-0.45, 0.27, 0.24), (-0.82, 0.28, 1.42), (0.25, 0.28, 2.14)]
for (a, b) in zip(pts, pts[1:]):
for y in (0.19, 0.37):
rod('Hinged brass arm', (a[0], y, a[2]), (b[0], y, b[2]), 0.033, gold)
for (x, y, z) in pts:
cyl('Pivot', (x, y, z), 0.094, 0.27, green, (pi / 2, 0, 0))
cyl('Pivot cap', (x, y - 0.15, z), 0.054, 0.029, gold, (pi / 2, 0, 0))
shade = lathe('Enamel shade', (0.41, 0.26, 2.12), [(0.07, 0.07), (0.12, 0.02), (0.17, -0.09), (0.325, -0.24), (0.35, -0.29), (0.344, -0.307), (0.325, -0.29)], green)
shade.rotation_euler.y = -0.4
emitter = mat('Linen diffuser', (1, 0.73, 0.39), 0, 0.3, 3.2)
o = cyl('Lamp diffuser', (0.53, 0.26, 1.865), 0.315, 0.016, emitter)
o.rotation_euler.y = -0.4
yield
bx('Print sheet', (0.74, -0.24, 0.008), (1.56, 1.05, 0.012), paper, 0.003)
for j in range(3):
p = geo_ring('Plan outline', (0.53, -0.17, 0.02 + j * 0.001), 0.17 + j * 0.065, 0.004, black)
p.scale.y = 0.69
text_obj('Plan title', 'STUDY / E-04', (0.92, -0.64, 0.025), 0.071, black, (0, 0, 0))
for y in [-0.43, -0.52]:
rod('Brass drawing pencil', (-1.11, y, 0.044), (-0.11, y + 0.065, 0.044), 0.031, gold)
yield
light('Lamp pool', (0.5, 0.2, 1.74), (0.63, -0.38, 0), 34, (1, 0.69, 0.34), 0.55)
shoot((2.65, -6.4, 3.14), (0.0, 0.06, 1.06), 4.18)
yield
course_key = 'SmartTools lesson / drafting'
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_geometry_suite', 'smart_shader_suite']:
product_module(required)
scene = bpy.data.scenes.new('Study / drafting')
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.
Select Lamp pool. In Light Data, change Power from 34 W to 0 W and render. The warm patch on the paper fades. Restore 34 W for the original shot.
If you close the file between steps, start the lesson again in a new file.
Marked the lighting note for preservation, inspected the saved scene and verified that the note was classified as protected.
A cleanup preview checks that the lighting memo is protected in a delivery copy. The image shows the lamp. The linked handoff exercise shows where to check which data is protected.
Remove a working box from a copy and keep the lamp movingInspected a retained lighting note and confirmed its protected status. The linked guide uses a different lamp delivery copy.
The white block was used to check framing. After hiding it from both viewport and render and saving the scene, select the block and its mesh in Release Cleanup. The reopened delivery copy keeps the lamp and its lighting note.
Only the rows for the mesh "Work Box" and the object "Work Box" are bright and can be checked. The Suzanne rows are gray "Protected". Names are filled in from the start for "New copy" and "Result JSON". "Candidates" in the summary row is the number of candidate rows in the list, and "Selected" is the number of checks you made. "Blockers" is 0, so once you check items, you can "Apply to Copy".
View the captured exampleUsed brushed brass for the arm and green enamel for the shade.
SmartTools Shader walkthrough ↗All controls and documentationGenerated the trim around the foot and the circular outlines on the drawing.
SmartTools Geometry walkthrough ↗All controls and documentationA target near the center of the desk keeps the print and the lamp in the same frame.
SmartTools CamLight walkthrough ↗All controls and documentationSales open January 1, 2027. One-time prices in USD. Local taxes may apply.
Preserve a production note during handoff
Total for these individual tools $62
Included tools used here
SmartTools Shader · SmartTools CamLight
Tools used here outside this bundle
SmartTools Hub · SmartTools Geometry
Bundle plus the listed tools outside it: $88
For just the listed tools, individual purchases cost $26 less.
Also in the bundle
SmartTools Paint · SmartTools Node