{ "$schema": "https://hyperframes.heygen.com/schema/registry-item.json", "name": "rack-focus", "type": "hyperframes:block", "title": "Rack Focus", "description": "A focus pull with real aperture bokeh: the focal plane travels from a near subject to a far one, so one resolves as the other blows into hard-edged polygon discs that clip to a cat's eye toward the corners. A focus pull only reads against content at two clearly separated depths, so this block carries its own depth-layered night exterior and puts both subject depths on variables.", "stability": "experimental", "dimensions": { "width": 1920, "height": 1080 }, "duration": 6, "tags": ["webgl", "shader", "camera", "depth", "cinematic", "showcase"], "variables": [ { "id": "nearfocus", "type": "number", "label": "Near focal distance", "default": 1.2, "min": 0.2, "max": 100, "step": 0.05, "unit": "m" }, { "id": "farfocus", "type": "number", "label": "Far focal distance", "default": 80, "min": 0.3, "max": 400, "step": 0.5, "unit": "m" }, { "id": "focallength", "type": "number", "label": "Focal length", "default": 85, "min": 12, "max": 300, "step": 1, "unit": "mm" }, { "id": "aperture", "type": "number", "label": "Aperture (f-number)", "default": 1.8, "min": 0.95, "max": 22, "step": 0.05 }, { "id": "blades", "type": "number", "label": "Aperture blades (bokeh shape)", "default": 6, "min": 3, "max": 14, "step": 1 }, { "id": "catseye", "type": "number", "label": "Cat eye clipping at the corners", "default": 0.62, "min": 0, "max": 1, "step": 0.02 }, { "id": "pullstart", "type": "number", "label": "Pull start", "default": 1.2, "min": 0, "max": 30, "step": 0.05, "unit": "s" }, { "id": "pullduration", "type": "number", "label": "Pull duration", "default": 3.2, "min": 0.1, "max": 30, "step": 0.05, "unit": "s" }, { "id": "pullease", "type": "string", "label": "Pull easing (GSAP ease)", "default": "power2.inOut", "placeholder": "power2.inOut" }, { "id": "bokeh", "type": "number", "label": "Bokeh exposure", "default": 1, "min": 0, "max": 3, "step": 0.05 }, { "id": "backdrop", "type": "color", "label": "Backdrop", "default": "#05060a" } ], "files": [ { "path": "rack-focus.html", "target": "compositions/rack-focus.html", "type": "hyperframes:composition" } ], "params": [ { "key": "--nearfocus", "label": "Near focal distance in metres (where the pull starts and the near subject sits)", "type": "number", "default": "1.2", "min": 0.2, "max": 100, "step": 0.05 }, { "key": "--farfocus", "label": "Far focal distance in metres (where the pull ends and the far subject sits)", "type": "number", "default": "80", "min": 0.3, "max": 400, "step": 0.5 }, { "key": "--focallength", "label": "Focal length in mm (longer lens = shallower depth of field)", "type": "number", "default": "85", "min": 12, "max": 300, "step": 1 }, { "key": "--aperture", "label": "Aperture f-number (lower = bigger bokeh)", "type": "number", "default": "1.8", "min": 0.95, "max": 22, "step": 0.05 }, { "key": "--blades", "label": "Aperture blade count, the bokeh polygon's sides", "type": "number", "default": "6", "min": 3, "max": 14, "step": 1 }, { "key": "--catseye", "label": "Cat's-eye clipping at the frame corners (mechanical vignetting)", "type": "number", "default": "0.62", "min": 0, "max": 1, "step": 0.02 }, { "key": "--pullstart", "label": "Seconds held on the near subject before the pull starts", "type": "number", "default": "1.2", "min": 0, "max": 30, "step": 0.05 }, { "key": "--pullduration", "label": "Pull duration in seconds", "type": "number", "default": "3.2", "min": 0.1, "max": 30, "step": 0.05 }, { "key": "--pullease", "label": "Pull easing (any GSAP ease name)", "type": "text", "default": "power2.inOut" }, { "key": "--bokeh", "label": "Bokeh exposure", "type": "number", "default": "1", "min": 0, "max": 3, "step": 0.05 }, { "key": "--backdrop", "label": "Backdrop", "type": "color", "default": "#05060a" } ] }