Commit Graph
1902 Commits
Author SHA1 Message Date
Valentin Klein 525dcfc0d8 Browse… buttons in a script's own dialogs and panels open the file dialog instead of doing nothing (#3253)
* Scripts: a ScriptUI Browse… button opens the file dialog

Fixes #2778.
Fixes #2894.

File.openDialog, File.saveDialog, Folder.selectDialog and the instance
openDlg / saveDlg / selectDlg were stubs that returned null, so a script
dialog's or a dockable ScriptUI panel's Browse… button did nothing.

On a script-host thread, in an app that shows them, the script now asks
for the dialog (Session::script_ui.file_dialogs, each with an id), hands
the session back like a modal dialog's show() does and waits for the
answer: a File (an array with multiSelect), a Folder, or null when
cancelled. The script's filter becomes the dialog's (its name, "All Files"
for *.*); without extensions every file shows. Headless runs, the Script
Console, the web and Shutdown scripts get null at once.

The app shows the dialog after the pass's events: blocking on Windows
(Hooks::pick_file_dialog), without blocking on macOS and Linux, one at a
time; a non-blocking dialog that ends without answering counts as
cancelled. scriptui.fileDialogs lists the waiting dialogs and
scriptui.fileDialog answers one (refused while file access is confined,
and refused to scripts). A dialog leaves the list only when its script
has the answer; the script's windows refuse events meanwhile, except
scriptui.close, which cancels the file dialog first. A script host that
ends takes its dialogs with it.

* Scripts: carry a file dialog's prompt, start location and filter to the native dialog (#2778)

serve_file_dialogs collected the script's prompt, start folder and save filter
but dropped them at the host boundary. FileDialog::Script now carries prompt and
start, and new ScriptFolder and ScriptSave requests carry the folder dialog's
prompt/start and the save dialog's prompt and whole filter (label, extensions,
any file) instead of the default name's extension. Both the blocking and the
non-blocking host dialogs apply title, initial directory and filters; Save also
goes through the blocking hook where one is set. Hook-level regression test
asserts all three requests.

* Scripts: a hidden window paints so a script's file dialog is shown (#3253 review)

* Scripts: formatting (#3253)
2026-11-22 12:58:56 -06:00
Valentin Klein e7bc3ad808 Audio Levels in the Audio panel show the value at the current time, with keyframes and expressions (#3234)
* Audio panel: Audio Levels show the value at the current time, keyframes and expressions included (#3227)

The level fields read the property's static base value. They now evaluate Audio Levels the way
the Timeline and Effect Controls do (EvalCtx at the current time: keyframes at layer time, the
expression host), and they are hot-text fields whose edits run the Timeline's prop.set, so a
keyframed property gets a key at the current time. The Timeline's Link Channels state applies
(#2485). New automation ids audio.levelLeft and audio.levelRight carry the shown value; the
fields are drawn only when the panel is wide enough for them.

Fixes #3227

* Audio panel: a Ctrl+Alt scrub of Audio Levels is proportional, as in the Timeline (#3227)

The Audio panel's prop.set now carries the proportional flag the Timeline sends for a Ctrl+Alt
(Cmd+Opt) scrub, so the change spreads over the selected layers by selection order.

* Audio panel: a scrub of expression-driven Audio Levels moves the keyframed value by the scrub (#3227)

prop.set takes a scrub's change from the keyframed value under the expression. The Audio panel
sent the shown (expression-evaluated) value moved by the scrub, so the expression's offset was
added to every selected layer on every frame of the scrub. A scrub now sends the keyframed value
moved by the shown change; a typed value is still set as it is.

* Audio panel: narrow panels keep the level fields; typing one channel keeps the other's value under the expression (#3227)

The level fields were left out below 110 px (the panel showed them down to 80 px before this
PR); 80-110 px now get a compact layout with L / R labels. Typing into one channel of an
expression-driven Audio Levels wrote the other channel's shown (expression-evaluated) value into
the value under the expression; that channel now keeps its own. Adds tests for a linked and an
Alt scrub and for typing into an expression-driven field.

* Audio panel: Audio Levels evaluate with the session's footage source (#3227)

The level fields built their expression context without the footage source, so an expression
sampling footage with sampleImage disagreed with the render. They now use the session's source.
Regression: nonzero sampled footage drives both channels.

* Audio panel: each level scrub is its own undo step (#3234 review)
2026-11-22 12:56:45 -06:00
FredApps 108e636260 test(ui): pump and wait longer while prefetch setup fills the cache (#4096)
Fixes #4095.

This is a hardening change for a FreeBSD CI flake; it may not fully fix the flake.

On the scheduled FreeBSD 15 x86_64 run, ui_preview_align::playback_prefetches_past_the_cached_frames_ahead failed during setup: after requesting frames 0..120 it asserted the cache equalled [0, 1, …, 119] and got only [0]. The wait was eight seconds and did not step the harness. The same test passed on the previous day's scheduled run.

This PR steps the harness while waiting, gives the workers up to 60 seconds, and reports how many frames actually landed. If workers never fill the cache under load, the test can still fail.

The FreeBSD aarch64 job only cross-compiles tests; it does not run them, so a green aarch64 leg is not a test pass.
2026-11-22 23:28:40 +07:00
vangel76 6bea5fa6ae Merge upstream/main into cache-defaults-3298 2026-11-19 10:21:55 +01:00
nicolafalcier99andNicola Falcier f6ed0b2500 #3391: a Views 1 | 2 | 4 switch in the Composition viewer's control row (#3848)
* contributors: Nicola Falcier

* #3391: a Views 1 | 2 | 4 switch in the Composition viewer's control row

---------

Co-authored-by: Nicola Falcier <[email protected]>
2026-11-18 18:12:26 -06:00
JCleanCode 981981632c Fix #1986 Cmd+A ("select all") doesn't work in "Import multiple files…
Fixes #1986

**Cause.** On macOS the open panel has no key equivalents of its own. Cmd+A (and C/V/X/Z) work
because the menu bar sends `selectAll:`, `copy:` and so on down the responder chain to the key
window. EffectCraft's Edit items are custom muda items, so while the sheet was up Cmd+A ran
Edit > Select All on the Project panel behind it.

**Fix.** The native file dialogs on screen are counted (`native_dialogs`). While one is open on
macOS, Undo / Redo / Cut / Copy / Paste / Select All become macOS predefined items, which send
the real actions to the dialog. The other `edit.*` items are disabled. The UI is repainted when
a dialog opens so the menu is rebuilt before the next key.

**Tests.** `edit_menu_is_disabled_while_a_file_dialog_is_open`,
`edit_text_commands_are_predefined_while_a_file_dialog_is_open`. Checked by hand on macOS:
Cmd+A in "Import multiple files" selects the files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
  * On macOS, Edit menu commands are disabled while a native file dialog is open and return to their appropriate enabled state when it closes or is canceled.
  * While a dialog is open, Undo, Redo, Cut, Copy, Paste, and Select All appear as native macOS menu commands with their current labels.
  * Opening a file dialog now triggers an immediate interface refresh, helping the menu update before the next key event.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-18 16:25:06 +07:00
arnav-hiwarkar 14d5866190 #3585: say where the gap revealed above an effect header comes from 2026-11-17 16:17:48 +05:30
arnav-hiwarkar 4d318a5347 #3585: scroll the effect Up / Down picks into view
Effect Controls scrolls its list so the header Down / Up selected is in
view, as a long effect stack would otherwise move the selection off
screen. The key handler leaves the effect to reveal for the panel's next
pass, which knows where the header is laid out.
2026-11-17 16:11:18 +05:30
arnav-hiwarkar 9b47fcf92f #3585: Up and Down select the previous and next effect in Effect Controls
With an effect header selected in a focused, on-screen Effect Controls,
plain Down / Up now select the next / previous effect in the stacking
order (After Effects), going on from the lowest / highest selected one
and stopping at the last / first without nudging the layer. It is a
selection change only: no undo step, no document or time change.

The arrows reuse the Left / Right collapse path and now act on the layer
the panel shows, so a locked panel's effects answer to them too.
Modified arrows, hidden panels, text fields, menus, dialogs, viewer text
editing and parameter-only selections keep their existing behaviour.
2026-11-17 16:10:22 +05:30
vangel76 fc4eddf2d5 Merge upstream/main into the plane store branch (#3301)
# Conflicts:
#	Cargo.toml
2026-11-17 11:10:07 +01:00
vangel76 c205773d92 Caching: memory is counted where it is held, and whole layers stay whole under a viewer region (#3301 review)
- The memory accountant is offered only layer buffers and preview frames nobody
  else holds, so what it counts as freed is freed; the frame cache's recycled
  buffers count and go first.
- A Cryptomatte plane over the matte cache's own limit is kept only where the
  common budget trims it.
- Disk cache entries read back take their buffers fallibly: memory the system
  can't give is a miss.
- The Layer panel, sampleImage and effect inputs read whole footage frames under
  a viewer region of interest.
- A 16K Cryptomatte source at half resolution is box-filtered, not looked up
  nearest-neighbour.
- The System Compatibility Report shows the cache budget in force.
- A Project panel thumbnail render never starts under a key held back from an
  earlier state.
- Convert Expression to Keyframes makes no keys on a property that can't be
  animated.
2026-11-17 11:09:13 +01:00
Dylan M. Taylor 22dbd1612f Merge pull request #3246 from vangel76/waveform-reversed-3238
The Timeline waveform shows what is really heard for reversed layers and the Backwards effect
2026-11-16 20:37:23 -05:00
vangel76 9ff031c5f1 Merge upstream/main into the plane store branch (#3301)
Conflicts: Cargo manifests (craft-libs pins from main, plus memory-stats, exr and
half for effectcraft-media), exr_channels.rs (the plane store's version; main's
craft-exr channel decode is replaced by the plane store until craft-exr reads
from a seekable source), pool.rs (frame_px takes the rows of #3271 and the
forget generation of #2042), session open/forget (main's forget_files plus the
reload counter), Project panel thumbnails (main's Thumb types, keyed by content).
2026-11-16 20:57:45 +01:00
ash 7b4138e2fb Merge pull request #2047 from arnav-hiwarkar/perf/timeline-drag-adaptive
Fast Previews: Adaptive Resolution applies while dragging in the Timeline
2026-11-16 17:31:17 +05:30
ash 5300531387 Merge pull request #2042 from arnav-hiwarkar/perf/close-project-frees-caches
Close, New and Open Project free the closed project's memory
2026-11-16 17:27:13 +05:30
FredApps b8fb20d3ac Merge pull request #3221 from vangel76/rotation-tool-drag-2769
The Rotation tool turns a layer by exactly the angle you drag from the press point
2026-11-16 10:30:40 +01:00
FredApps 7c3a9ffe15 Merge pull request #3218 from vangel76/graph-flat-segments-2720
Graph Editor curves pass through every keyframe and show Hold steps as vertical jumps
2026-11-16 10:29:41 +01:00
FredApps 2bfb8bad3b Merge pull request #3254 from vangel76/effect-controls-alt-expression-1460
Alt-click on a stopwatch in Effect Controls adds or removes an expression, as in After Effects, instead of toggling keyframes
2026-11-16 10:28:40 +01:00
FredApps 2881f048f1 Merge pull request #3343 from dotCooCoo/fix/update-outcome-at-start
Updates: the first start after an update shows how it ended
2026-11-16 10:23:06 +01:00
FredApps 4e80f99d2f Merge pull request #3344 from dotCooCoo/fix/update-restart-unsaved
Updates: Restart to Update with unsaved changes opens the save prompt
2026-11-16 10:22:13 +01:00
FredApps 3338a45379 Merge pull request #3690 from ZIDAN44/fix/3367-negative-field-edit
Angles: typing into a negative angle's degrees replaces its minus sign (#3367)
2026-11-16 10:19:25 +01:00
Dylan M. Taylor 218b94224a test(ui): serialize GPU picker integration 2026-11-15 23:57:08 -05:00
vangel76 f4a8c88349 Merge upstream/main into cache-defaults-3298 2026-11-15 20:28:43 +01:00
Dylan M. Taylor ac1c1d9202 encoding: reuse shared Base64 writers across four consumers 2026-11-15 13:19:05 -05:00
.CooCoo 7cbefaf70f Import: VectorCraft documents import through the PDF they carry (#2901)
* Import: VectorCraft documents import through the PDF they carry

File > Import reads a .vectorcraft file through the PDF that VectorCraft
saves in it with Create PDF-Compatible File, one page per artboard, as
footage or as a composition with one layer per PDF layer. The PDF is read
with craft-doc from craft-libs (plain or compressed files, the PDF inline
or after the JSON). A PDF after the JSON may be as large as a PDF file
EffectCraft imports (512 MiB). A document saved without that option gives
an import error that names it.

craft-doc, craft-vectorcraft-format (tests only) and craft-ecproj-format
are pinned to craft-libs fa1a6574; craft-ecproj-format is unchanged
between ca1b5e2e and that commit.

* Import: show file errors returned by the import dialog

* Keep dropped-file import errors alongside local drop errors

* Import: preserve every file error across background jobs and UI notices

* Import: queue pending errors with bounded notification details

* Import: a damaged VectorCraft preview no longer stops the carried PDF

The importer read every rendition with craft_doc::renditions and then
picked the PDF, so a preview whose base64 was invalid or whose data lay
past the end of the file made the whole import fail. It now reads only
the PDF with craft_doc::rendition, from storytold/craft-libs#546, and
never decodes the preview. A document without a PDF still reports
NoCarriedPdf.

* Import: dismissing a picked import's error status acknowledges its details

A picked or menu import queued its error details with the status
report_import_errors set ("first (and 1 more)"), and show_result_errors
then replaced that status with "first; second". The two never matched,
so clicking the status left the details queued and they showed again.
Import commands now move the queued details to the status that replaces
it, also when After Effects project errors lead it. Other commands'
statuses never take over an import's details.
2026-11-15 03:45:56 -05:00
vangel76 fc63da8839 Merge main
# Conflicts:
#	crates/ui-egui/src/menus/tests.rs
2026-11-14 22:29:13 +01:00
Zinadin Zidan 3fd1448482 Merge remote-tracking branch 'origin/main' into fix/3367-negative-field-edit 2026-11-15 03:15:04 +06:00
vangel76 cf94d1a980 ui-egui tests: the file.import dialog answers carry paths as Ok, as DialogAnswer.paths is a Result now (#3304 met the tests of #3103 on main) 2026-11-14 19:54:14 +01:00
vangel76 0a3d74fb54 ui-egui tests: the file.import dialog answers carry paths as Ok, as DialogAnswer.paths is a Result now (#3304 met the tests of #3103 on main) 2026-11-14 19:54:13 +01:00
vangel76 2780a50302 ui-egui tests: the file.import dialog answers carry paths as Ok, as DialogAnswer.paths is a Result now (#3304 met the tests of #3103 on main) 2026-11-14 19:54:13 +01:00
vangel76 c1f3a03a9d ui-egui tests: the file.import dialog answers carry paths as Ok, as DialogAnswer.paths is a Result now (#3304 met the tests of #3103 on main) 2026-11-14 19:54:12 +01:00
vangel76 3ad49f8f7b Merge upstream/main into cache-defaults-3298
Conflict in crates/render/src/pipeline.rs: kept both the footage-rows
reader of this branch and the frame-mix span reader from main.
Adapted three menus tests to DialogAnswer.paths now being a Result.
2026-11-14 19:53:16 +01:00
vangel76 c1191503c2 Merge upstream/main into rotation-tool-drag-2769 2026-11-14 19:25:29 +01:00
vangel76 3bc37b0b8b Drop the duplicate expression_toggled that the merge brought in from main 2026-11-14 19:18:45 +01:00
vangel76 d5268dd2ee Merge remote-tracking branch 'upstream/main' into waveform-reversed-3238 2026-11-14 18:21:02 +01:00
FredApps 4bb4c71583 Wrap the line rustfmt would wrap 2026-11-14 18:20:47 +01:00
FredApps 3968433f75 Tests: import dialog tests answer with a Result of paths
DialogAnswer.paths became a Result in #3304; three import tests merged
since still passed a plain Vec, so the test build of effectcraft-ui-egui
did not compile on main.
2026-11-14 18:20:27 +01:00
vangel76 82733a4cdb Merge upstream/main into graph-flat-segments-2720 2026-11-14 18:14:09 +01:00
vangel76 29ea97fed7 Merge upstream/main into effect-controls-alt-expression-1460 2026-11-14 18:14:01 +01:00
Zinadin Zidan ab18109b2a Merge main into fix/3367-negative-field-edit
angle_field. The degrees field gets the signed remainder, the sign is painted
only for a positive one, and a typed step goes from the signed remainder.
2026-11-14 23:03:20 +06:00
FredApps f029bbadb2 Merge pull request #3251 from vangel76/tests-pin-english-3244
Tests: Match System resolves to English in ui-egui test builds
2026-11-14 17:30:28 +01:00
FredApps afaa9cced3 Merge pull request #3304 from vangel76/macos-open-panel-3084
File dialogs: a dialog that can't be created is an error, not a crash (#3084)
2026-11-14 17:30:08 +01:00
FredApps 38cd374bae Merge pull request #3236 from vangel76/number-field-math-3195
Number fields: typed arithmetic (960/2, (3+4)*2) and a leading *, / or + applied to the value
2026-11-14 17:29:47 +01:00
FredApps 829706de6f Merge pull request #3232 from vangel76/project-drag-new-folder-3196
Project panel: items dropped on New Folder go into a new folder, as After Effects
2026-11-14 17:29:26 +01:00
FredApps da611b2540 Merge pull request #3226 from vangel76/waveform-peaks-1722
Timeline waveform: read keyframed Audio Levels at layer time
2026-11-14 17:28:05 +01:00
FredApps f89dd51bcf Merge pull request #3235 from vangel76/effect-controls-lock-3193
Effect Controls: lock the panel to the layer it shows
2026-11-14 17:27:24 +01:00
FredApps 94a8e5cabf Merge pull request #3214 from vangel76/effect-rename-select-3198
Effect Controls: renaming an effect opens with the whole name selected
2026-11-14 17:26:51 +01:00
FredApps c3cdaecdc6 Merge pull request #3240 from vangel76/shift-snap-axis-3229
Viewer: a Shift-constrained drag snaps only along its axis
2026-11-14 17:25:59 +01:00
FredApps ee31dd170d Merge pull request #3225 from vangel76/graph-theme-3202
Graph Editor: follow the theme (plot, bar buttons, grid, keys, handles, curves)
2026-11-14 17:25:26 +01:00
FredApps 987be06ec3 Merge pull request #3243 from vangel76/timeline-convert-bezier-menu-3237
Timeline: Convert To Bezier Path in the context menu of a parametric shape path
2026-11-14 17:25:06 +01:00