Command · Template Draw List
template.resolve
The draw list of a template at a design time, without adding it to a timeline: what template browsers draw for thumbnails and hover previews (C.16).
- v1
- Capability Read
- Tool
template_resolve
Request
{
"command": "template.resolve",
"params": {
"template": "wabcut.gaming.lowerThird",
"values": {
"name": "Somchai"
}
}
}Parameters
library`project` | `user` | `builtin`- Only this library.
sequenceinteger (1..)- Sequence id; only needed when the project has several.
templatestringRequired- The template's id.
timeinteger (0..)- Design time in ticks from the template's start. Default its poster time.
valuesobject- Field values by field id, as template.instantiate takes them.
Discussion
The draw list of a template at a design time, without adding it to a timeline: what template browsers draw for thumbnails and hover previews (C.16). Default time: the template's poster time (everything has animated in). "values" previews field values. Same items as graphic.resolve.
Run it with wabcut-cli cmd <project> --json, from an MCP client as template_resolve, or from an extension. See Edit commands for requests, references and results.
See also
template.*
- template.instantiate
Add Template. Adds a graphic made from a template (template.list) as a clip, with field values (by field id: text a string, colour "#RRGGBB" or [r, g, b, a] 0..1 or {"brand": name}, font a family or {"family", "style", "weight"}, image a media id or name, duration a time, checkbox true/false).
- template.list
Templates. The graphic templates of the project's library, the user's and the built-in ones that ship with Wabcut (C.16: gaming lower thirds, banners, callouts, stingers, end cards...): id, name, version, default length, canvas, and the fields (id, label, kind, default value) template.instantiate and template.setField take.
- template.save
Save as Template. Saves a graphic clip's graphic as a template with editable fields (Premiere's Motion Graphics Templates): into the project's library (default), or the user's template library folder ("library": "user"; the host's, not a path).
- template.setField
Edit Template Fields. Sets field values of a template instance clip (template.list shows the fields): "field" and "value", or several at once in "values" - one undo step.