VParamix

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 comments
  • local for local variables
  • function for 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 out

Reference Pages

PageUse it for
APIRuntime helpers such as src, prev, dt, save, and load.
VTS APIHotkeys, model loading, model movement, and post-processing.

Learn Lua

On this page