Plug-ins: ScriptUI Panels folder scripts dock as panels and reopen, as in After Effects
EffectCraft's extension points compared with After Effects' (public user guide and Scripting Guide) are now in docs/plugins.md, which becomes "Plug-ins and extensions": scripts, ScriptUI panels and effect plug-ins, with a short guide and an example panel for writing your own. ScriptUI panels already came from `Scripts/ScriptUI Panels/` in the settings folder, were listed at the bottom of the Window menu and docked as tabs. What was missing: After Effects reopens the panels that were open when it quit. Now the open panels are remembered in `scriptui_panels.json` in the settings folder (a panel is added when it opens and dropped when its tab or its script closes it; quitting leaves the list), and `window.restoreScriptPanels` opens them again; the desktop and web apps run it at start-up. A panel whose script is gone or fails is reported and forgotten, and the others still open. Where a panel was docked isn't kept, as workspace layouts aren't saved between launches. Gaps recorded in plugins.md and gaps.md G8: the Startup and Shutdown script folders, keyboard shortcuts for scripts, ExtendScript's `#include` / `#target` directives and `.jsxbin`. Test: open_panels_open_again_at_the_next_launch (fails before: no restore command), a_panel_dropped_in_the_folder_is_listed_and_opens_as_a_panel (script), panels_open_at_quit_dock_again_at_launch (UI: the restored panel docks with its controls; closing the tab forgets it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6ce58040fd
commit
9da33c157e
@@ -82,6 +82,8 @@ pub fn run_code(s: &mut Session, code: &str, name: &str) -> Outcome {
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
#[cfg(test)]
|
||||
mod tests_panels;
|
||||
#[cfg(test)]
|
||||
mod tests_ui;
|
||||
#[cfg(test)]
|
||||
mod tests_ui_more;
|
||||
|
||||
Reference in New Issue
Block a user