Copy link to clipboard
Copied
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()?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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 🙂
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.