Hide UXP plugin's command from InDesign plugins panel

Is it possible to hide commands of UXP plugins from the InDesign plugins panel?
When logging the entrypoints of a plugin using the UDT, I see the following fields among those of the command:

uxp.entrypoints.getCommand("<ID>")

{
    "_manifestCommand": {
        "type": "command",
        "commandId": "<ID>",
        "id": "<ID>",
        "sequenceNumber": 1,
        "label": "...",
        "description": "...",
        "hideFromMenu": false,
        "hideFromPluginsPanel": false,
        "triggerEvents": []
    },
    "_isManifestCommand": true,
    "_commandOptions": null
}

Setting hideFromMenu and hideFromPluginsPanel to true when defining the command in the manifest does not seem to affect the visibility anyhow.
Is it at all possible to achieve this?

I’m also interested in this question. As far as I can see commands are the only way to have IPC.

This doesn’t make sense to show commands, that are used for communication between plugins, to users.

Visible commands used for IPC is exactly our problem aswell :slight_smile:

1 Like

@Erin_Finnegan, apologies for tagging you, but how to get answer to this question?

This is not only InDesign question, but for all UXP hosts.

Who should I tag in the future?

I guess @indranil if it’s for all UXP hosts…

Well, I checked our code…rendering the plugin command entrypoints is not controlled by UXP. That value ”hideFromMenu” is just propagated to the JavaScript layer and not acted upon by UXP. @Erin_Finnegan This needs to be addressed by each product since they have their own ways to handle the menu entries. It would be best if we (Adobe) communicate this internally to the CC apps since I don’t think it’s feasible for developers on this forum to reach out to them.

1 Like

Thank you @indranil!

To confirm, in case I’m missing something, are commands the only way to have IPC?

Technically, you could also show plugin panels via IPC (see this example code), but I’m guessing that’s not the use case you are after, so yes, commands are the way to achieve Inter-Plugin Communication amongst plugins in UXP.

1 Like