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

It is not possible to set an effect name that is longer than 39 bytes via scripting

New Here ,
Mar 28, 2024 Mar 28, 2024

It is not possible to set an effect name that is longer than 39 bytes via scripting.

 

But, in some languages (e.g. german) the default effect names of the built-in animation presets using expressions are way longer than 39 characters. And therefore it's not possible to use scripts doing something with those long effect names.

6f22974a-6825-4131-9ec0-de5fb2926daf.jpg

 

Bug Acknowledged
TOPICS
Scripting , Troubleshooting , Workflow
186
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 , Jun 11, 2024 Jun 11, 2024

A ticket has been filed for further investigation. Thanks for reporting it.

 

Best,

Nishu

Status Acknowledged
Translate
3 Comments
Advocate ,
Mar 28, 2024 Mar 28, 2024

You can use the effect index instead of its name using a function like this:

 

function getEffectIndex(layer, effectName) {
  for (var i = 1; i <= layer.effect.numProperties; i++) {
    if (layer.effect(i).name == effectName) {
      return i
    }
  }
  return null
}

// usage
var proj = app.project;
var thisComp = proj.activeItem;
var layer = thisComp.layer(1);

layer.effect(getEffectIndex(layer, 'longEffectName'))(1).setValue(100)

 

 

Translate
Report
Explorer ,
Apr 15, 2024 Apr 15, 2024

The bug is that the effect name cannot be set via scripting if the name is more than 39 bytes. Adobe bug ID: DVAAE-4229694

Translate
Report
Adobe Employee ,
Jun 11, 2024 Jun 11, 2024
LATEST

A ticket has been filed for further investigation. Thanks for reporting it.

 

Best,

Nishu

Status Acknowledged
Translate
Report