Skip to content

Scripting: Property.keyInSpatialTangent / keyOutSpatialTangent under their AE names - #10

Merged
bflatastic merged 1 commit into
storytold:mainfrom
storybored379:pr/spatial-tangent-getter-names
Oct 5, 2026
Merged

bflatastic merged 1 commit into
storytold:mainfrom
storybored379:pr/spatial-tangent-getter-names

Conversation

@storybored379

Copy link
Copy Markdown
Contributor

The spatial tangent getters were registered as keySpatialInTangent / keySpatialOutTangent, so
scripts using the documented After Effects names (keyInSpatialTangent / keyOutSpatialTangent)
failed with TypeError: not a callable function. setSpatialTangentsAtKey and the other
keySpatial* methods already use AE's names.

What changed

The two getters in prelude.js are registered under the documented names.

How it was found and tested

  • Found while scripting keyframes through the headless MCP server (effectcraft-cli mcp).
  • Regression test spatial_tangents_round_trip (set tangents, read them back) fails on current
    main without the fix and passes with it
    .
  • cargo test -p effectcraft-script, cargo clippy -p effectcraft-script --all-targets (no new
    warnings), cargo fmt --check on the touched file, cargo xtask layers, cargo xtask wasm.
  • Files: crates/script/src/prelude.js, crates/script/src/tests.rs
  • Clean-room: names from the After Effects scripting guide; no third-party source consulted.

Found and fixed with Claude Code (AI-assisted).

🤖 Generated with Claude Code

…their AE names

The getters were registered as keySpatialInTangent / keySpatialOutTangent,
so scripts using the documented After Effects names failed with
"TypeError: not a callable function" (setSpatialTangentsAtKey and the
other keySpatial* methods already use AE's names).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bflatastic

Copy link
Copy Markdown
Member

Thanks @storybored379! Reviewed, tested on current main (with the other open fixes) and merged. Clear write-up and a regression test — much appreciated. Come say hi on Discord: https://discord.gg/artcraft

eliasx45 pushed a commit to eliasx45/effectcraft that referenced this pull request Oct 11, 2026
…dit storytold#10)

pooled_texture (split 3D views, the locked viewer) keyed its frames with
freeze_preview_revision (freeze generation + loaded font faces), a different
counter from the main viewer's session.revision. The frame queue drops jobs of
older revisions, so each extra-view request dropped the main viewer's and
playback's queued prefetch (or the other way round). It now uses
session.revision like frame_series, with the freeze epoch in the content memo
(content_of_preview).

Tests run: cargo test -p effectcraft-ui-egui --lib extra_view_frames (new
panels::viewer::tests::extra_view_frames_do_not_drop_the_main_viewers_prefetch:
failed before, 2 of 4 frames left in flight; passes after); clippy -D warnings
on effectcraft-ui-egui --all-targets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants