From 6e506aa29160f33fb1063511dae193dd6ef184be Mon Sep 17 00:00:00 2001 From: Jorian Rutten Date: Tue, 4 Nov 2025 18:00:10 +0100 Subject: [PATCH 1/3] Add `app.command.ToggleWorkspaceLayout` to the command documentation As far as I could see it does not include any parameters. I'm unsure about the new UI markers and whether they would be required here. I also just noticed this feature is still in beta, which might be why it wasn't in the documentation yet. But since I had already written it down anyway, might as well offer it up! --- api/app_command.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/app_command.md b/api/app_command.md index 3b89a8c..841b290 100644 --- a/api/app_command.md +++ b/api/app_command.md @@ -243,6 +243,8 @@ Executes the given command named `CommandName` with the specified parameters. * Toggles the visibility of the preview window * app.command.ToggleTimelineThumbnails * Toggles the timeline thumbnails preference +* app.command.ToggleWorkspaceLayout + * Toggles the Workspace Layout UI. This command only opens or closes the workspace layout mode, and cannot be used to select a specific Layout. * app.command.UndoHistory * Shows the undo history window * app.command.Undo From 702957e4bad81a7db56ed91a532dd79f5bce162a Mon Sep 17 00:00:00 2001 From: Jorian Rutten Date: Fri, 7 Nov 2025 20:37:18 +0100 Subject: [PATCH 2/3] Add note on `range.layers` sort order Added a note on how Range.layers seems to be sorted, since it was surprising to find the order does not match the order layers are usually presented (such as in sprite.layers or layer.layers), and does not follow the next most logical assumption, that they are presented in order of selection. I did some testing to determine that they are added in chronological order, but this could be coincidence if they are added in a random order instead. --- api/range.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/range.md b/api/range.md index b481454..49a457d 100644 --- a/api/range.md +++ b/api/range.md @@ -57,6 +57,10 @@ app.range.layers = { layer1, layer2, ... } Returns or sets the array of selected [layers](layer.md#layer). +Note that the array is sorted chronologically, in order of when +the layers were created. The order does not match the order seen +on the timeline, nor the order in which they were selected. + ## Range.frames ```lua From 3fbf650ed53972c29822b56c8d6030021e37d517 Mon Sep 17 00:00:00 2001 From: Jorian Rutten Date: Fri, 7 Nov 2025 21:11:31 +0100 Subject: [PATCH 3/3] Remove `app.command.ToggleWorkspaceLayout` documentation from this branch Added this one to the main branch a few days ago, so when I made the branch for the other change, that commit was mistakenly included too... --- api/app_command.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/app_command.md b/api/app_command.md index 841b290..3b89a8c 100644 --- a/api/app_command.md +++ b/api/app_command.md @@ -243,8 +243,6 @@ Executes the given command named `CommandName` with the specified parameters. * Toggles the visibility of the preview window * app.command.ToggleTimelineThumbnails * Toggles the timeline thumbnails preference -* app.command.ToggleWorkspaceLayout - * Toggles the Workspace Layout UI. This command only opens or closes the workspace layout mode, and cannot be used to select a specific Layout. * app.command.UndoHistory * Shows the undo history window * app.command.Undo