Skip to main content
Nathan Lovell_52
Inspiring
February 22, 2022
Question

Scripting .precompose() bug in CC 2022

  • February 22, 2022
  • 3 replies
  • 354 views

AE CC 2022 appears to have an issue with .precompose(). The precompose() method is called and fully executes precomposing and naming, but goes no further. In VSCode this is how it appears to behave, but ExtendScripts reveals an actual error:

The ExtendScript Error Reads: 

After Effects Error: bad tracked memory id

 

I noticed this error in AE v22.1.0, upgraded to 22.2.0, and the problem still persists. Is this just my computer or is this an AE-wide bug that will break all existing scripts that use .precompose()?

This topic has been closed for replies.

3 replies

Justin Taylor-Hyper Brew
Community Expert
Community Expert
February 22, 2022

Workin fine in 22.2.0 (Build 120) on Widnows on my end.

 

app.project.activeItem.layers.precompose([1,2,3], 'test', true);

 

Maybe try clearing prefs and re-installing.

Tomas B. aka Tom10
Inspiring
February 22, 2022

Can't say 100%, but try hovering on a project panel, instead of viewport. 

 

Just click anywhere in the layers stack. Blue stroke will appear around the panel. It might be "activeItem" you are referring to is not active 🙂 

Nathan Lovell_52
Inspiring
February 22, 2022

My comp is indeed active. The precompose method is running all the way through, precomposing my layers and naming them what I provide. The error is coming up after processing the method, and stopping the script completely.

Dan Ebberts
Community Expert
Community Expert
February 22, 2022

It's working fine for me in AE 22.2.0, so my guess is that it's a system/confguration issue or a bad install. Sorry, that's pretty vague, but I've never encountered that particular error.