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

Match Name for Dropdown Menu Control Effect Randomly changing

Contributor ,
May 11, 2020 May 11, 2020

I'm currenly working on a script which uses Dropdown Menu Control effect.

 

I can use this Match Name : "ADBE Dropdown Control" to add Dropdown menu to a layer.

But If I want to check whether a layer contains dropdown menu using this same Match Name it doesn't work well. I've tried alert the matchName of existing Dropdown Menu. It randomly changes something like "Pseudo/@@qpFySX4lSVK41BTpoPU+jA"  How to verify If a layer or multiple layers have dropdown menu added in it by it's matchName?

TOPICS
Error or problem , Resources , Scripting
808
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
Explorer ,
Sep 25, 2022 Sep 25, 2022

Jesus, how hard is it to make names consistent?

 

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
Community Expert ,
Sep 26, 2022 Sep 26, 2022

Good question. I don't have any inside knowledge, but if I had to guess, I'd say the fact that the Dropdown Menu control lets you add, subtract, or edit elements on the fly is somehow the reason for it being implemented as a Pseudo Effect. If you edit one in any way, it appears to generate a new Match Name. So, I don't know how you verify it's a Dropdown Menu control just by its Match Name, unless maybe they all begin with "Pseudo/@@".

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
New Here ,
Jun 06, 2024 Jun 06, 2024

I am facing this same problem even in 2024 update..any idea?

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
Explorer ,
Jun 14, 2024 Jun 14, 2024

I used slider instead

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
Participant ,
Jun 16, 2024 Jun 16, 2024
LATEST

You can easily check whether a property is a dropdown effect by using Property.isDropdownEffect

https://ae-scripting.docsforadobe.dev/properties/property.html#property-isdropdowneffect

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