Skip to main content
Evgeny Lancer
Participant
June 20, 2020
Answered

Expressions like "marker.key ("NAME")" now do not work?!

  • June 20, 2020
  • 4 replies
  • 2775 views

Hello everyone!

 

After update 17.1.1, expressions that are linked with a marker name stopped working. And now it breaks me the whole game. I know that can enable Legacy ExtendScript and it will work, but this is a bad solution. Is there any chance that this will be fixed in the next update?

 

This topic has been closed for replies.
Correct answer JohnColombo17100380

Hi evgeny_hive,

Thank you for reporting this issue. This bug was introduced in the 17.1.1 version and the team is now tracking it internally. Apologies for any frustration this may have caused. When a fix becomes available, it will be in the Beta version of After Effects before coming to the release version.

 

Thanks again,

- John, After Effects Engineering

4 replies

Participating Frequently
October 26, 2022

I'm getting this same error. I've been trying to figure this out for two days now. I can't believe this hasn't been resolved.

JohnColombo17100380
Community Manager
Community Manager
October 26, 2022

Hi @Asher_E,

What version of After Effects are you using? I've just confirmed that referencing comp and layer markers by name is working in After Effects 2023 in both expression engines. If you're using that same version of After Effects, would you share your expression? Perhaps there's an additional syntax error.

 

Cheers,

- John, After Effects Engineering Team 

Participating Frequently
October 27, 2022

Hi John,

 

Thank you for the replay. Working more with the actions it seems like the error is occurring when adding Math.min. If I use just easeIn(time, markerIn, markerIn+dur, bot, mid); to trigger a position animation the code works. But if I try to use Math.min to trigger more than one animation, that's when I get the error on the first line of code. Here is the code I have for the position animation.

var markerIn = thisLayer.marker.key(1).time;
var markerOut = thisLayer.marker.key(2).time;

var dur = 1; //time in seconds

var bot = [960,1830]; //bottom position
var mid = [960,575]; //middle position
var top = [960, -748]; //top position

//at marker 1, move from the bottom position to the middle position, then at marker 2 move from the middle position to the top position
Math.min(easeIn(time, markerIn, markerIn+dur, bot, mid), easeOut(time, markerOut, markerOut+dur, mid, top));

 Thanks for checking this out.

Participant
June 25, 2020

Sadly the error still occurs on beta 17.1.2x33 on Windows 64.
We are also waitig for a fix on this issue as soon as possible ...

Community Expert
June 22, 2020

Switching the project back to the Legacy ExtendScript should fix it temporarily. Just open up the Project settings and make the change in the Expressions tab. Shift + Alt/Option +Ctrl/Cmnd + k will take you there.

JohnColombo17100380
Community Manager
JohnColombo17100380Community ManagerCorrect answer
Community Manager
June 22, 2020

Hi evgeny_hive,

Thank you for reporting this issue. This bug was introduced in the 17.1.1 version and the team is now tracking it internally. Apologies for any frustration this may have caused. When a fix becomes available, it will be in the Beta version of After Effects before coming to the release version.

 

Thanks again,

- John, After Effects Engineering