Docs Core

TimelineRegistry

Publish a widget into TouchDesigner's timeline bar: transport controls beside the stock ones, an entry on the time-properties block, or a full-width strip in the frame-ruler band that gets its own row.

◈ Core

Why use it

TouchDesigner's timeline bar is a fixed piece of chrome: the play controls, the frame ruler and the time settings, laid out exactly as TouchDesigner draws them. A tool that wants to add to it, say transport buttons for your media or a filmstrip behind the ruler, would have to copy its panel into the bar on every launch (TouchDesigner's UI is never saved with a project), find a spot that does not cover the stock controls, and grow the bar for anything that needs its own row, then shrink it back exactly when it leaves. Two tools doing that on their own would trip over each other's sizes.

TimelineRegistry makes the bar extensible. A tool publishes a panel COMP and it appears in the bar, in a zone it picks, without the tool knowing anything about the bar's layout. The stock blocks stay where they are, as they are: contributions are shown through Select COMP mirrors anchored to TouchDesigner's own blocks, and the registry rebuilds them on every open.

With nothing contributed, the bar stays stock. The surface appears with the first registration and disappears with the last, and the bar returns to its stock height.

Features

  • Stock bar when unusedWith nothing contributed the timeline bar stays stock, and it returns to its stock height when the last widget goes.
  • Background zone adds a rowThe background zone makes the bar taller by its own height, recomputed from the stock height each time so the bar never creeps taller.
  • Publish widgets to the timeline barA tool publishes a panel COMP and it appears in the timeline bar, shown through mirrors so the stock blocks stay as they are.for tool authors
  • Transport, ruler and graph-heading zonesA widget sits at the right end of the transport row, as a full-width strip under the frame-ruler numbers, or in the Animation editor's graph heading.for tool authors
  • Register through a host copyA tool ships a small host copy whose Registration page names the COMP, canonical name, zone, order and whether it is displayed.for tool authors
  • Python registration APIRegisterWidget, UnregisterWidget and SetWidgetZone on op.FNS_TIMELINEREGISTRY add, remove and move widgets from Python; the zone settles a frame later.for tool authors

How to use it

The registry is part of the toolkit's core and installs with it, and there is nothing to arrange in it directly. You see it through the tools that publish into the timeline. TimelineTools is the reference consumer: its media controls sit in the transport row, its filmstrip and waveform run in a strip behind the frame ruler, and its controls in the Animation editor arrive through the graph heading zone.

To show or hide what a tool puts there, use that tool's own settings, such as TimelineTools' Show In Timeline Strip or Controls In Animation Editor.

The three zones

  • transport: in TouchDesigner's transport row, packed against its right end, clear of the stock play controls.
  • background: a full-width strip in the frame-ruler band, drawn underneath the ruler numbers. TouchDesigner's own ruler background is transparent, so the strip shows through.
  • graphheading: in the graph heading of the Animation editor, right-aligned.

background is a grow zone. It makes the bar taller by its own height and the bar's fixed-height blocks follow, so the transport row keeps its full height and its controls stay unclipped; the playhead is stretched to span the taller bar. The bar's height is always recomputed as TouchDesigner's stock height plus the growth, never added to the height it already has. The timeline's height is saved in the .toe while the registry is not, so adding to it would make the bar creep taller every session.

There is no zone for the time-properties block on the left. TouchDesigner stacks three panels there and draws only one of them, so anything placed in that block would be covered.

For tool authors

A tool that wants a timeline widget ships a small host copy of this registry, the same shape as a toolbar or navbar entry. The host's Registration page names the contribution: the Widget COMP (the host's parent by default), a Canonical Name, the Timeline Zone, its Timeline Order and whether it is Displayed. Auto-register keeps it published.

Size the widget for its zone. Bar Height at 0 uses the zone's own row height. The registry sizes your source panel to it, because a mirror shows the widget at the widget's own size: an oversized source shows only its top-left corner in the slot. Bar Width at 0 follows the widget.

From Python, guarded:

reg = getattr(op, 'FNS_TIMELINEREGISTRY', None)
if reg is not None:
	reg.RegisterWidget(comp, 'mytool', zone='transport', order=20)

UnregisterWidget() and SetWidgetZone() are the rest of the API, and RegisterWidget() also takes width and height. A zone name the registry does not know falls back to transport. /sys is rebuilt on every open, so a script registration has to run again each time; a host does that for you.

Registration takes a frame: the entry is stored first and its zone arrives with the host's parameter a frame later, so anything that depends on the final zone settles a frame later.

Get it

Tick it on the install page and it installs with the rest of your setup and stays up to date.

Download FNS_TimelineRegistry.tox Version 3.2.8, the tool on its own. It works in any project, and this copy never updates itself.

Parameters

Registration

ControlType / defaultWhat it does
Widget COMPComp operator.. Panel COMP published as the toolbar widget. Defaults to the parent component.
Canonical NameCanonicalname textempty Unique name for this widget in the global toolbar registry.
Callback DATCallback operatorempty Optional DAT with toolbar callbacks for this widget.
Auto-registerAutoregister on / offoff When on, keep this widget published into the global toolbar registry while this component exists.
RegisterRegister button Publish once into the global toolbar registry, even if Auto-register is off.
UnregisterUnregister button Take this tool's contribution back out of the registry and turn Autoregister off, so it stays out. Register puts it back.
Registration StatusRegstatusread-only textempty Read-only status of this host registration.
Timeline OrderMenuorder number-1 Preferred order among registered widgets, managed by the global registry. -1 = no preference (append at the end).
DisplayedDisplayed on / offon Default visibility of the widget in the toolbar (managed by the global registry).
Bar WidthBarwidth number0 Width of this widget in the toolbar. 0 = auto (follow the widget). Persisted here; the registry writes manager edits back.
Bar HeightBarheight number0 Height of this widget in its zone. 0 = the zone's own row height. The registry sizes the SOURCE panel to this, because a mirror is a window onto the widget and not a scaler, so an oversized source shows only its top-left corner in the slot.
Timeline ZoneZone menuTransport Which part of TD's timeline this widget is published into. 'Transport row' appends it after the native play/stop controls. 'Properties block' places it in the left 279px column. 'Background strip' spans the full width in the frame-ruler band and is drawn UNDERNEATH the ruler. The ruler's own background is transparent, so it shows through.
Options: Transport, Background, Graphheading
Help URLHelpurl textempty The tool's wiki/help page opened from the Configurator (right-click the Name cell). Leave empty to auto-discover from a docsHelper COMP (its Url par) inside the registered panel or its parent.
Promote ParametersPromotepars on / offon When on, the host mirrors its key Registration parameters onto the parent tool as a bound 'Registry' page. Turn off before shipping a tool that should not expose registry controls.
Pre-Save HealPresaveheal on / offon Before each project save, re-check this registry: update entries whose component moved, drop entries whose component is gone, and republish a host that initialised before the global registry existed. Off skips the sweep for this registry only.