• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
3

[Bug Report] Adding sourceRectAtTime() Expression Crashes AE

Community Beginner ,
Sep 28, 2022 Sep 28, 2022

Copy link to clipboard

Copied

When attempting to add a sourceRectAtTime() expression to a Mask Path property that references a text layer, After Effects will immediately crash upon evaluation.

Reproduction steps:
1. Create a new project
2. Create a new composition (tested with HDTV 1080 29.97 preset for repro purposes)
3. Add a text layer
4. Create a comp-size solid
5. Add a comp-size mask to the solid by double clicking the mask button
6. On the "Mask Path" property of the mask created in step 5, add the expression: `thisComp.layer().sourceRectAtTime()

After clicking out of the expression editor and allowing AE to evaluate, After Effects crashes.

OS: Windows 10 Pro
OS Build: 19041.572
AE Version: 18.0.1 (Build 1)
Bug Investigating
TOPICS
Troubleshooting

Views

39

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Pinned Reply

Adobe Employee , Sep 28, 2022 Sep 28, 2022
Hi Ethan,

Thank you for reporting this issue! We are able to reproduce this crash as well. Our team is now tracking it internally and we will investigate the root cause for a fix in a future version of AE.

Thanks again,
- John, After Effects Engineering Team

Votes

Translate

Translate
3 Comments
Participant ,
Sep 28, 2022 Sep 28, 2022

Copy link to clipboard

Copied

Indeed it crashes if you put a "sourceRecAtTime()" expression to a Mask Path property.
It should return an error.
Here is an expression to create a rectangular mask on a solid based on the size of another layer :

var targetedLayer = thisComp.layer();
var W = targetedLayer.sourceRectAtTime().width;
var H = targetedLayer.sourceRectAtTime().height;
var X = targetedLayer.sourceRectAtTime().left;
var Y = targetedLayer.sourceRectAtTime().top;
var point1 = targetedLayer.toComp([X,Y]);
var point2 = targetedLayer.toComp([X+W,Y]);
var point3 = targetedLayer.toComp([X+W,Y+H]);
var point4 = targetedLayer.toComp([X,Y+H]);
createPath(points = [point1,point2,point3,point4], inTangents = [], outTangents = [], is_closed = true)

Votes

Translate

Translate

Report

Report
Community Beginner ,
Sep 28, 2022 Sep 28, 2022

Copy link to clipboard

Copied

Thanks, Bruno.
And to clarify my original post for the devs, I expect this expression as written to return an error - not that it should work - instead of crashing.

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Sep 28, 2022 Sep 28, 2022

Copy link to clipboard

Copied

LATEST
Hi Ethan,

Thank you for reporting this issue! We are able to reproduce this crash as well. Our team is now tracking it internally and we will investigate the root cause for a fix in a future version of AE.

Thanks again,
- John, After Effects Engineering Team

Votes

Translate

Translate

Report

Report