VParamix

Lua

Lua language reference for scripting in VParamix.

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

Learn Lua

On this page