Skip to content

User JSON FileExtensionIndicator

roosit edited this page Oct 16, 2026 · 1 revision

File extension JSON

Back to list | Indicator page | Русский

Purpose

This page describes the JSON template of the fileExtension indicator for editing .vttp files by hand. The indicator draws the extension of the source file as large text across the whole layer.

Full Template

{
  "name": "com.velitask.plagin.official.fileExtension",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "fileSource": {},
      "font": {"name":"Dialog","style":0,"size":48,"color":{"r":224,"g":224,"b":224,"a":255}},
      "padding": {"value":12}
    }
  }
}

Settings

fileSource

The choice of the file ("File source") whose extension is drawn. An empty object means the file is picked automatically: the source the player is opened on.

{
  "fileSource": {}
}
Field Values What it does
sourceId source id in the project In a real project it points to the file. It is not set in a hand-written template.

font

The font ("Font"): the name, style, and color of the text. The size is fitted automatically and does not depend on the size value.

{
  "font": {"name":"Dialog","style":0,"size":48,"color":{"r":224,"g":224,"b":224,"a":255}}
}
Field Values What it does
name font name, for example Dialog Font family.
style 0, 1, 2 Style: 0 plain, 1 bold, 2 italic.
size integer 1..999 Font size; it does not affect the result, as it is fitted to the layer.
color color object Text color (light gray 224,224,224 by default).

The fields of the color object:

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 is fully transparent, 255 is opaque.

padding

The padding from the layer edges ("Padding, %").

{
  "padding": {"value":12}
}
Field Values What it does
value 0..40 Padding as a percentage of the smaller side of the layer. 12 by default. 0 puts the text right up against the edges.

Clone this wiki locally