Command · New Synthetic Item
media.newSynthetic
Makes a synthetic project item (File > New): "colorMatte" (params color.r/g/b, 0..1: a background for text, a flash), "blackVideo" or "transparentVideo" (a layer of its own for effects that draw).
- v1
- Capability EditProject
- Tool
media_newSynthetic
Request
{
"command": "media.newSynthetic",
"params": {
"kind": "colorMatte",
"params": {
"color.b": 0.6,
"color.g": 0.2,
"color.r": 0.1
}
}
}Parameters
bininteger (1..)- The bin to put it in (bin id). Default: the root.
kind`blackVideo` | `colorMatte` | `transparentVideo`Required- What to make.
namestring- The item's name. Default: the kind's name ("Color Matte").
paramsobject- Settings by key; missing ones take the defaults (white).
params.color.bnumber (0.0..1.0)- colorMatte: blue, 0..1.
params.color.gnumber (0.0..1.0)- colorMatte: green, 0..1.
params.color.rnumber (0.0..1.0)- colorMatte: red, 0..1.
sequenceinteger (1..)- Sequence id; only needed when the project has several.
Discussion
Makes a synthetic project item (File > New): "colorMatte" (params color.r/g/b, 0..1: a background for text, a flash), "blackVideo" or "transparentVideo" (a layer of its own for effects that draw). It is made for the sequence's frame size and rate, needs no file and can be any length. Put it on the timeline with clip.overwrite or clip.insert. createdIds: the item.
Run it with wabcut-cli cmd <project> --json, from an MCP client as media_newSynthetic, or from an extension. See Edit commands for requests, references and results.
See also
media.*
- media.list
List Media. Lists the project's media as arrays in mediaFields order: id, name, duration in ms, whether it has video, its number of audio streams, whether it is a still image and whether it is offline.
- media.makeSubclip
Make Subclip. A new media item playing "in".."out" (exclusive) of a media item's file, named "name", in "bin" (default the root).
- media.setAttributes
Media Attributes. Library metadata of media items: name (new clips take it; existing clips keep theirs), label colour, comment, description and poster frame (a source time, or null to clear it).
- media.setSubclip
Edit Subclip. Changes a subclip's range and restriction (Premiere's Edit Subclip).