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

keyValue() return wrong value

Advocate ,
Mar 01, 2024 Mar 01, 2024

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))
  }
}

 

Bug Investigating
TOPICS
Scripting
558
Translate
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 , Mar 04, 2024 Mar 04, 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 

Status Investigating
Translate
3 Comments
Community Expert ,
Mar 02, 2024 Mar 02, 2024

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

Translate
Report
Adobe Employee ,
Mar 04, 2024 Mar 04, 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 

Status Investigating
Translate
Report
Community Expert ,
Mar 12, 2024 Mar 12, 2024
LATEST
Translate
Report