Commit Graph
5 Commits
Author SHA1 Message Date
FredApps 00a4903b5f Merge pull request #3230 from vangel76/script-expression-error-3219
Scripting: expressionError reports evaluation errors, as After Effects
2026-11-14 17:29:06 +01:00
vangel76 fc9eca99a0 #3231: evaluate prop.get and expression errors with the footage source
prop.get and Session::expression_errors (Reveal Expression Errors, the
viewer's error banner) built their expression context without the
footage source, so an expression that reads footage pixels
(sampleImage) gave a different value or a spurious error there while
it worked in the render and in expr.errors (#1000).

expr_tools::eval_ctx builds the render's context (expression host and
footage source) for a comp at a time; expr.errors, prop.get,
Session::expression_errors and the script value query all use it.

Fixes #3231
2026-11-07 15:42:40 +01:00
vangel76 cdbb884f28 Scripting: expressionError reports evaluation errors, as After Effects
Property.expressionError only compiled the expression, so one that compiles
but throws or yields a non-finite number read as "" while expr.errors
reported it. It now evaluates the property's expression at the comp's
current time through the same per-property check expr.errors uses
(expr_tools::property_error), without rendering anything. Without an
evaluator, an enabled expression falls back to the syntax check.

Fixes #3219
2026-11-07 14:32:31 +01:00
Camille Moine 06bdd7e2b6 Expressions: offer bezier in the language menu and auto-complete (#1884)
Add the helper to the expression editor's completions (syntax highlighting and auto-complete) and to the Expression Language menu's Interpolation group, so accepting it inserts the call parentheses like linear/ease.
2026-10-29 11:58:34 +01:00
aiongg a3ea645fc6 refactor(engine): move commands/ to cmd/, keeping commands as an alias 2026-10-26 21:49:10 +00:00