Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Jesus, how hard is it to make names consistent?
Copy link to clipboard
Copied
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/@@".