/blender-developer-tools:vse-pythonfrom blender-developer-tools
Builds and inspects Blender Video Sequence Editor timelines from Python. Handles API differences between 4.5 LTS and 5.2 LTS: .strips vs .sequences accessor, new_effect length vs frame_end, and COLOR strip transform behavior.
Ships in blender-developer-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the user:
sequence_editor, strips, sequences, new_effect, COLOR strips, or StripTransformAttributeError: 'SequenceEditor' object has no attribute 'sequences' on 5.xTypeError on new_effect kwargs (frame_end vs length)transform.scale_* after a resolution changeimport bpy
scene = bpy.context.scene
se = scene.sequence_editor or scene.sequence_editor_create()
coll = se.strips if hasattr(se, "strips") else se.sequences
if bpy.app.version >= (5, 0, 0):
strip = coll.new_effect(
name="A", type="COLOR", channel=1,
frame_start=1, length=10,
)
else:
strip = coll.new_effect(
name="A", type="COLOR", channel=1,
frame_start=1, frame_end=11,
)
strip.color = (0.85, 0.10, 0.22)
Branch on the bpy.app.version tuple for known API boundaries (such as the 5.2 COLOR strip width/height bake), never on bpy.app.version_string. Pick the .strips vs .sequences accessor with hasattr, not version: an empty bpy_prop_collection is falsy, so se.strips or se.sequences silently falls through to the legacy accessor on an empty timeline.
.strips vs .sequences| 4.5 LTS | 5.1 / 5.2+ | |
|---|---|---|
| Canonical collection | .strips (.sequences is a bridge to the same strips) | .strips only |
.sequences | Present, same contents as .strips | AttributeError |
def strips_coll(se):
return se.strips if hasattr(se, "strips") else se.sequences
Do not write se.sequences in new code. On 5.x it is gone; on 4.5 .strips already exists. The same split applies to .sequences_all / .strips_all (measured on 4.5.14 and 5.2.1). The no-legacy-vse-sequences rule flags both.
new_effect end kwargstrips.new_effect(...) ends a strip with one accepted end argument. The other raises TypeError.
span = (1, 33) # end-exclusive [start, end)
if bpy.app.version >= (5, 0, 0):
strip = coll.new_effect(
name="A", type="COLOR", channel=1,
frame_start=span[0], length=span[1] - span[0],
)
else:
strip = coll.new_effect(
name="A", type="COLOR", channel=1,
frame_start=span[0], frame_end=span[1],
)
Timeline bounds: frame_final_start / frame_final_end / frame_final_duration on 4.5. On 5.x those names are deprecated aliases (removal announced for 6.0); canonical accessors are left_handle / right_handle / duration. Scene strips take four args — new_scene(name, scene, channel, frame_start) — with no length / frame_end kwarg on either version.
The TRANSFORM effect type is removed on 5.x. Place strips with per-strip strip.transform (StripTransform) on both versions. Effect inputs are input_1 / input_2 (creation kwargs input1 / input2).
4.5 LTS and 5.1 COLOR strips have no intrinsic size. transform.scale_* is a fraction of the output frame. Creating at factory resolution then rendering a tiny buffer is fine.
5.2 and later bake readonly width / height from scene render resolution at new_effect time. Scale and offset are then in that media space, not a later output size. Set scene resolution before building strips.
This split is not in the 5.2 python_api release notes. Witnessed by examples/vse-cut-list/ --check-pixels.
width, height = 96, 54
scene.render.resolution_x = width
scene.render.resolution_y = height
se = scene.sequence_editor or scene.sequence_editor_create()
coll = se.strips if hasattr(se, "strips") else se.sequences
if bpy.app.version >= (5, 0, 0):
strip = coll.new_effect(
name="A", type="COLOR", channel=1,
frame_start=1, length=10,
)
else:
strip = coll.new_effect(
name="A", type="COLOR", channel=1,
frame_start=1, frame_end=11,
)
if bpy.app.version >= (5, 2, 0):
# 5.2+: readonly width/height baked at new_effect from scene.render
assert (strip.width, strip.height) == (width, height)
# strip.width = 64 # TypeError — readonly
else:
# 4.5 / 5.1: no intrinsic size; hasattr(strip, "width") is False
pass
strip.transform.scale_x = 0.36
strip.transform.scale_y = 0.36
Creating at factory 1920×1080 then dropping the scene to 96×54 for a check render makes a 0.36-scaled COLOR cell larger than the output. On 5.2 the long-runner covers the frame; pixel samples read the wrong strip.
A lone COLOR strip does honor transform.scale_* on 5.2. The break is media size vs a later output size, not "transform is ignored."
sequence_editor.sequences on 5.x. AttributeError. Use .strips (with hasattr only as a 4.5 bridge).
Wrong new_effect end kwarg. frame_end= on 5.x and length= on 4.5 both raise TypeError.
Creating COLOR strips, then changing render size (the 5.2 trap):
a = coll.new_effect(...) # bakes 1920×1080 on 5.2
scene.render.resolution_x = 96 # output changed; media size did not
Set scene.render.resolution_* before new_effect.
se.strips or se.sequences. An empty collection is falsy, so this falls through to .sequences on a fresh editor.
TRANSFORM effect type on 5.x. Gone. Use strip.transform.
Scene strip pointing at its own scene. Feedback loop; renders transparent. Source a separate scene.
Effect strips consume their inputs only when stacked on a channel above those inputs. Below, the inputs keep compositing independently. A GAMMA_CROSS asked to outlast its inputs' overlap is silently clamped to the overlap.
examples/vse-cut-list/ — accessor rename, new_effect kwargs, save/reload, and the 5.2 COLOR size bake (--check-pixels asserts A.width, A.height == render size on 5.2+).examples/vse-gamma-cross/ — GAMMA_CROSS blend curve.docs/technical-audit.md § Findings the release notes did not list.Each example runs headless, asserts the contract, and exits non-zero when it breaks. Run one with blender --background --python <script> --; pass a falsifier flag to watch the check fail.
vse-cut-list: The sequencer API rename from 4.5 LTS to 5.x — strips (never .sequences), new_effect ending in length= vs frame_end=, and left_handle/right_handle/duration replacing the deprecated frame_final_*. Falsify: --swap-inputs (exit 7).vse-gamma-cross: The GAMMA_CROSS fade is not the naive linear mix: it blends in a gamma-0.5 space, so the mid-cross dips below the sRGB lerp. Falsify: --swap-inputs (exit 4).vse-linear-modifiers: Pathology witness for the 5.2 removal of Strip.use_linear_modifiers. Falsify: --assume-present (exit 4).bpy.types.SequenceEditor: https://docs.blender.org/api/current/bpy.types.SequenceEditor.htmlbpy.types.Strip (the type was Sequence through 4.3; renamed in 4.4, so 4.5 LTS and 5.x both use Strip, and the real 4.5-vs-5.x split is .sequences vs .strips): https://docs.blender.org/api/current/bpy.types.Strip.htmlStrip: https://docs.blender.org/api/4.5/bpy.types.Strip.htmlSequenceEditor: https://docs.blender.org/api/4.5/bpy.types.SequenceEditor.htmlSequenceEditor: https://docs.blender.org/api/5.1/bpy.types.SequenceEditor.htmlWhat SKILL.md sets; muted values are Claude Code's defaults
27 skills in this plugin
/addon-scaffoldingScaffold a Blender add-on as an Extensions Platform package: blender_manifest.toml, modular file layout, register_classes_factory, symmetric register/unregister. Use when the user starts a new add-on or extension, writes or fixes blender_manifest.toml, asks which layout or registration pattern to use on Blender 4.5 LTS or 5.x, or has classes that fail to register or unregister cleanly. Targets 5.2 LTS with 4.5 LTS fallback./ai-mesh-cleanupOrdered cleanup for an imported generated or scanned mesh before it goes to an engine: scene units, apply rotation and scale, origin to base, recalculate normals, evaluated triangle count, decimate to a budget, convex collider. Use when the user has a GLB, glTF or FBX that is not engine-ready, mentions unit scale, unapplied transforms, triangle budget, LODs or a collision hull, or is about to run mesh operations on an import without checking its scale. Targets 5.2 LTS with 4.5 LTS fallback./bake-high-to-lowCage-bake high-poly surface detail onto a low-poly target as a tangent-space normal map with bpy.ops.object.bake (Cycles, selected-to-active, active Image Texture node, UV layer, save_render). Use when the user wants a normal map from a dense mesh onto a game-resolution or decimated LOD, mentions cage_extrusion or use_selected_to_active, or gets a bake that returns CANCELLED, comes out black or flat, or fails with 'No active UV layer found'. Targets 5.2 LTS with 4.5 LTS fallback./blender-rulesBlender Python anti-pattern rules (bmesh leaks, bpy.ops in loops, deprecated context-copy overrides, bulk mesh writes, prop annotations and context guards, Extensions manifest, import scale, export modifiers, glTF/FBX axis RNA, the removed bgl module, the normals API removed in 4.1). Use when writing, reviewing or fixing any bpy / Blender add-on or script code./bl-info-migrationMigrate a legacy bl_info add-on to the Extensions Platform in three steps, with a before/after diff and the dual-format pattern. Use when the user has a bl_info dictionary in __init__.py, asks whether bl_info is deprecated or still supported, wants to publish to extensions.blender.org or ship an extension .zip, or sees warnings about legacy add-ons at install time. Targets 5.2 LTS; manifests work from 4.2./compositor-nodesBuild and render through the scene compositor from Python across the 4.5 LTS to 5.x split: scene.use_nodes plus scene.node_tree and a Composite node on 4.5, a CompositorNodeTree node group assigned to scene.compositing_node_group with interface sockets and a Group Output on 5.x, a Render Layers to Glare (Fog Glow) chain, the Glare node's move from enum properties to menu input sockets, and render.use_compositing. Use when the user scripts compositor nodes, adds bloom or glow, hits AttributeError on scene.node_tree in 5.x, sets glare_type or quality and gets AttributeError on 5.x, looks for the removed EEVEE use_bloom toggle, or renders and sees no compositor effect. Targets 5.2 LTS with 4.5 LTS fallback.npx claudepluginhub tmhsdigital/blender-developer-tools --plugin blender-developer-toolsOther plugins' skills for the same job