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.