Skip to content

User JSON TextIndicator

roosit edited this page May 31, 2026 · 2 revisions

Text JSON

Back to list | Indicator page | Russian

Purpose

This page describes the JSON template for the text indicator for manual .vttp editing.

Full Template

{
  "name": "com.velitask.plagin.official.text",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "value": {"value":"Текст"},
      "font": {"name":"Dialog","style":{"value":0},"size":{"value":48},"color":{"r":255,"g":255,"b":255,"a":255}},
      "textAlign": {"value":0}
    }
  }
}

Settings

value

Sets an arbitrary caption. The text is static and does not depend on track data.

{
  "value": {"value":"Текст"}
}
Field Values What it does
value string The caption text. An empty string draws nothing.

font

Changes the font and color of the caption.

{
  "font": {"name":"Dialog","style":{"value":0},"size":{"value":48},"color":{"r":255,"g":255,"b":255,"a":255}}
}
Field Values What it does
name font name Selects the font family.
style.value number Stores font style.
size.value number Font size.
color r/g/b/a 0..255 Text color and opacity.

color

{
  "color": {"r":255,"g":255,"b":255,"a":255}
}
Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Opacity: 0 fully transparent, 255 opaque.

textAlign

Aligns text inside the layer.

{
  "textAlign": {"value":0}
}
Field Values What it does
value or nested fields depends on the setting type Stores alignment value.

Clone this wiki locally