update doc/*/vca.md

This commit is contained in:
MihailRis 2026-10-07 22:51:57 +03:00
parent 1f2e938d83
commit bbe1873bc7
2 changed files with 36 additions and 0 deletions

View file

@ -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.

View file

@ -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 - время в секундах.