Start with this task
Keep similar components identifiable
A desktop instrument with brass encoders, two banks of trigger pads and walnut end cheeks.
Blender 5.3.0
Assign the pad IDs, then check their layout through the camera. Group Smart ID and Smart CamLight in one popup to switch without reopening the sidebar.
Each colored square is a pad-top island. Repack the six islands from multiple tiles into one 1024 px tile with an 8 px margin.
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):
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 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 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))
def active(o):
bpy.ops.object.select_all(action='DESELECT')
o.select_set(True)
bpy.context.view_layer.objects.active = o
def identity(objs, number, label):
sid = product_module('smart_id_suite')
settings = sid.get_settings(scene)
settings.target_scope = 'SELECTED'
settings.write_custom_props = False
entry = sid.get_entries(scene).add()
entry.name = label
entry.type = 'OBJECT_ID'
entry.id_number = number
entry.enabled = True
entry.uid = label
active(objs[0])
for o in objs:
o.select_set(True)
assert sid.apply_entry(bpy.context, entry) > 0 and all((o.pass_index == number for o in objs))
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)
ivory = mat('Bone', (0.79, 0.72, 0.58), 0.15, 0.31)
gold = brushed('Champagne brass', (0.61, 0.36, 0.13))
sid = product_module('smart_id_suite')
studio((0.07, 0.135, 0.15), (0.9, 0.53, 0.22))
shell = lacquer('Warm ivory powder coat', (0.7, 0.65, 0.48))
teal = lacquer('Glacier blue pads', (0.012, 0.3, 0.31))
orange = lacquer('Vermilion key', (0.79, 0.13, 0.035))
bx('Enclosure', (0, 0, 0.34), (3.44, 2.03, 0.53), shell, 0.13)
bx('Top deck', (0, 0, 0.624), (3.26, 1.87, 0.077), black, 0.07)
for x in (-1.77, 1.77):
bx('Walnut end cheek', (x, 0, 0.36), (0.13, 2.0, 0.6), mat('Oiled walnut', (0.24, 0.084, 0.035), 0, 0.35), 0.044)
screen = mat('Phosphor', (0.44, 1, 0.66), 0, 0.3, 1.35)
bx('LCD', (-0.81, 0.48, 0.679), (1.31, 0.53, 0.035), mat('LCD backing', (0.022, 0.085, 0.057), 0.18, 0.24), 0.025)
text_obj('LCD channel', 'FIELD REC / 08', (-0.84, 0.5, 0.7), 0.115, screen, (0, 0, 0))
yield
knobs = []
pads = []
for i in range(4):
x = 0.1 + i * 0.382
knobs.append(cyl('Encoder', (x, 0.53, 0.755), 0.135, 0.19, gold))
bx('Knob index', (x, 0.6, 0.857), (0.018, 0.079, 0.011), black, 0.005)
for j in range(2):
for i in range(8):
x = -1.36 + i * 0.387
y = -0.23 - j * 0.362
pads.append(bx('Trigger pad', (x, y, 0.714), (0.304, 0.264, 0.11), orange if i > 5 else teal, 0.043))
text_obj('Trigger index', str(j * 8 + i + 1).zfill(2), (x, y, 0.773), 0.077, ivory, (0, 0, 0))
yield
identity(knobs, 4, 'Encoders')
identity(pads, 8, 'Triggers')
text_obj('Product type', 'TONE / FIELD SEQUENCER', (-0.6, -0.018, 0.668), 0.072, ivory, (0, 0, 0))
shoot((2.3, -5.0, 4.2), (0, 0, 0.48), 5.05)
yield
course_key = 'SmartTools lesson / instrument'
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_id_suite', 'smart_shader_suite']:
product_module(required)
scene = bpy.data.scenes.new('Study / instrument')
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 Encoder, then Trigger pad. In Object Properties compare Pass Index: 4 for knobs, 8 for pads. These IDs label parts independently of material colour.
If you close the file between steps, start the lesson again in a new file.
The four encoders and sixteen pads receive different object IDs. Every assignment is checked against its group.
Four encoders receive object ID 4 and sixteen pads receive ID 8. These values are independent of the surface colors. Check each object’s pass index to verify the assignment.
Assign Object IDs to Three Suzannes and Color-Code ThemAssigned ID 4 to the encoders and ID 8 to the trigger pads, then verified every object.
Assign ID 4 to the four encoders and ID 8 to the sixteen pads. Each view highlights only the members of one ID with the same inspection material.
Before assigning, all three are the same color; after assigning, each Suzanne takes on its entry's display color (a different color for each ID).
View the captured exampleClear coat on the case and pads contrasts with the brushed-metal encoder tops.
SmartTools Shader walkthrough ↗All controls and documentationA camera rig above the instrument frames the encoder height and pad layout.
SmartTools CamLight walkthrough ↗All controls and documentationSales open January 1, 2027. One-time prices in USD. Local taxes may apply.
Keep similar components identifiable
Total for these individual tools $52
Included tools used here
SmartTools ID
Tools used here outside this bundle
SmartTools Shader · SmartTools CamLight
Bundle plus the listed tools outside it: $78
For just the listed tools, individual purchases cost $26 less.
Also in the bundle
SmartTools File · SmartTools Workspace