To use Lua in the Slice Commander

In the Slice Commander, load a Lua script through Main menu > Slices > Execute Lua Script, or through a selected slice's Context menu > Extended > Execute Lua Script. This runs the script immediately. The variable slice is predefined and corresponds to the selected slice(s). Scripts are run in parallel for any selected slice stack.

Please note that any changes need put into the project tree via a new slice using system:addslicetotree. The script SliceCommanderLUAScript_example1_Offset demonstrates this.