fusion_lua
Run Lua scripts inside a Fusion composition to build and edit node graphs, enabling node-level operations not accessible via Python API.
Instructions
Run Lua inside a Fusion comp. This is how node graphs are built and edited.
The Python API reaches comps but not their nodes, so node-level work goes
through here. Inside the script, comp is the composition.
Example: local bg = comp:AddTool("Background") bg.TopLeftRed = 1
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script": "<script>"
},
"name": "fusion_lua"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| comp_name | No | ||
| item_handle | No |