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

Why serPropertyParameter() method mistakenly taking two different string values as duplicate string?

Contributor ,
May 14, 2020 May 14, 2020

Copy link to clipboard

Copied

I'm trying to add list of array values as items for Dropdown Menu Control Effect? Here's the screen shot...Untitled.png

 

But the each items in array is different from each other

 

Code:

 

//Edited code var array = ["1","2","043","4","5"];
var array = ["1","2","443","4","5"];
var layer = app.project.activeItem.selectedLayers[0];
layer.property("ADBE Effect Parade").property("Dropdown Menu Control").property(1).setPropertyParameters(array);

 

 

The string "443" and "4" conflict each other. May I know the reason why is it happens?

TOPICS
Expressions , How to , Resources , Scripting

Views

1.0K

Translate

Translate

Report

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 Correct answer

Contributor , Nov 25, 2020 Nov 25, 2020

Fixed on After Effects CC 2020 v17.5.1

Votes

Translate

Translate
Explorer ,
May 14, 2020 May 14, 2020

Copy link to clipboard

Copied

The code in your picture throws an error, the code you posted works.

 

I saw another post about this behaviour. Apparently, if an item is a substring from the start of the previous item, this error occurs.(ex of pair of errors ["Human kind", "Human"], ["dropDown","drop"])

 

I tried putting an invisible character at the start of "4", but it shows as ? in the dropDown. You should make a post on the bug report page.

Votes

Translate

Translate

Report

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
Contributor ,
May 14, 2020 May 14, 2020

Copy link to clipboard

Copied

Thank you for letting me know that... I just copied wrong code from the editor. However thank you for letting me know this is an substring error. I'll report the bug in report page.

Votes

Translate

Translate

Report

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
Contributor ,
May 20, 2020 May 20, 2020

Copy link to clipboard

Copied

Not fixed yet - After Effects CC 2020 v17.1

Votes

Translate

Translate

Report

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
Contributor ,
Nov 25, 2020 Nov 25, 2020

Copy link to clipboard

Copied

Fixed on After Effects CC 2020 v17.5.1

Votes

Translate

Translate

Report

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
Explorer ,
Sep 03, 2022 Sep 03, 2022

Copy link to clipboard

Copied

LATEST

I'm using CC2022, seems like AE won't allow any identical items eg ["BLANK", "BLANK"].

Substrings are fine, so if you have an array with identical strings needs changing to :

["BLANK 1", "BLANK 2"]

or ["1. BLANK", "2. BLANK"]

I noticed AE does this when you first apply a dd ["Item 1", "Item 2", "Item 3"]

Logically you wouldn't want identical items but seems strange that you can't.

Hope this helps anyone 🙂

 

 

Votes

Translate

Translate

Report

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