Scripting Language
Build custom parameters with the VParamix Lua scripting language.
The VParamix scripting language creates custom parameters with Lua.
Lua is a lightweight, embeddable scripting language used for scripting and automation. In VParamix, you can use Lua to organize logic in readable scripts.
Lua Language Basics
Lua uses simple syntax with:
--for commentslocalfor local variablesfunctionfor reusable logic- tables for flexible collections
-- Variables
local speed = 10
local enabled = true
-- Table
local channels = { "X", "Y", "Z" }
-- Condition and function
local function clamp(value)
if value < 0 then
return 0
elseif value > 1 then
return 1
end
return value
end
local out = clamp(speed * 0.1)
return outReference Pages
| Page | Use it for |
|---|---|
| API | Runtime helpers such as src, prev, dt, save, and load. |
| VTS API | Hotkeys, model loading, model movement, and post-processing. |