Highlighted

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

Contributor ,
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?

Fixed on After Effects CC 2020 v17.5.1

TOPICS
Expressions, How to, Resources, Scripting

Views

672

Likes

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

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

Contributor ,
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?

Fixed on After Effects CC 2020 v17.5.1

TOPICS
Expressions, How to, Resources, Scripting

Views

673

Likes

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
May 14, 2020 0
Explorer ,
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.

Likes

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
Reply
Loading...
May 14, 2020 1
Contributor ,
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.

Likes

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
Reply
Loading...
May 14, 2020 0
Contributor ,
May 20, 2020

Copy link to clipboard

Copied

Not fixed yet - After Effects CC 2020 v17.1

Likes

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
Reply
Loading...
May 20, 2020 0
Contributor ,
Nov 25, 2020

Copy link to clipboard

Copied

Fixed on After Effects CC 2020 v17.5.1

Likes

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
Reply
Loading...
Nov 25, 2020 0