From bbe1873bc71d027976ac5920cc2243b5957447fa Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 7 Oct 2026 22:51:57 +0300 Subject: [PATCH] update doc/*/vca.md --- doc/en/vca.md | 18 ++++++++++++++++++ doc/ru/vca.md | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/doc/en/vca.md b/doc/en/vca.md index 7b2bda0b5..722432e31 100644 --- a/doc/en/vca.md +++ b/doc/en/vca.md @@ -28,6 +28,7 @@ Two kinds of curve definitions are currently available, each producing a value ` - `@scale` - scales an object/bone (multiplier) - `@zoom` - camera zoom (multiplier) - `@texture` - change of a dynamically assigned texture (see [skeleton:set_texture](scripting/ecs.md#skeleton)) +- `@control` - changing flag values, such as visibility ## Metadata @@ -96,6 +97,23 @@ If you do not wish to limit the animation duration via `configure` but want to l } ``` +Example of using the `control` directive: + +```vcd +# Specific bone +@control bone head flag visible period 20 { + @key frame 0 value on + @key frame 10 value off +} + +# Entire skeleton +@control flag visible period 30 { + @key frame 0 value on + @key frame 10 value off +} + +``` + ## Expression curves The attribute describes a function `f(t) = x`, where t is time in seconds. diff --git a/doc/ru/vca.md b/doc/ru/vca.md index 2cba3c3ab..91c252833 100644 --- a/doc/ru/vca.md +++ b/doc/ru/vca.md @@ -28,6 +28,7 @@ VCA файл состоит из набора директив, порядок - `@scale` - масштабирование объекта/кости (множитель) - `@zoom` - масштаб камеры (множитель) - `@texture` - смена динамически-назначаемой текстуры (см. [skeleton:set_texture](scripting/ecs.md#skeleton)) +- `@control` - изменение значений флагов, таких как видимость ## Мета-информация @@ -96,6 +97,23 @@ VCA файл состоит из набора директив, порядок } ``` +Пример использования директивы `control`: + +```vcd +# Конкретная кость +@control bone head flag visible period 20 { + @key frame 0 value on + @key frame 10 value off +} + +# Весь скелет +@control flag visible period 30 { + @key frame 0 value on + @key frame 10 value off +} + +``` + ## Кривые через выражения Через атрибут описывается функция `f(t) = x` где t - время в секундах.