Skip to main content
Legend
March 2, 2024

keyValue() return wrong value

  • March 2, 2024
  • 3 replies
  • 601 views

When you move a layer on the timeline, keyValue() may return an undesired value.

tested with AE 2024 and Beta.

 

var proj = app.project;
var thisComp = proj.activeItem;
var selectedLayers = thisComp.selectedLayers;
for (var i = 0; i < selectedLayers.length; i++) {
  for (var k = 1; k <= selectedLayers[i].text.sourceText.numKeys; k++) {
    alert(selectedLayers[i].text.sourceText.keyValue(k))
  }
}

 

This topic has been closed for replies.

3 replies

Community Expert
March 12, 2024
JohnColombo17100380
Community Manager
Community Manager
March 5, 2024

Hi @Airweb_AE,

Thank you for reporting this issue. It appears to be new to 24.2. We now have a ticket open and will be investigating a fix for a future version of After Effects.

 

Thanks again,

- John, After Effects Engineering Team 

Dan Ebberts
Community Expert
Community Expert
March 2, 2024

I can confirm that behavior. Does seem to be a bug.