I wrote this simple plugin to run a bunch of commands. It all worked fine in v4 manifest but when I changed over to v5 it will load but none of the commands will run. Any help would be very appreciated
{
"id": "com.uxp.layer-functions ",
"name": "Layer Functions",
"version": "1.0.0",
"main": "index.js",
"manifestVersion": 5,
"host": [
{
"app": "PS",
"minVersion": "22.4.0",
"data": {
"apiVersion": 2
}
}
],
"requiredPermissions": {
"localFileSystem": "fullAccess"
},
"entrypoints": [
{
"type": "command",
"id": "lyrNme_BM",
"label": {
"default": "Rename layers: Opacity-BlendMode"
}
},
{
"type": "command",
"id": "blendmodeFill",
"label": {
"default": "Fill Layer with Neutral Colour"
}
},
{
"type": "command",
"id": "lyrVersion",
"label": {
"default": "Duplicate layer with timestamp"
}
},
{
"type": "command",
"id": "duplicatetoAll",
"label": {
"default": "Duplicate Layers to all Documents"
}
}
],
"icons": [
{
"width": 48,
"height": 48,
"path": "icons/light.png",
"scale": [
1,
2
],
"theme": [
"darkest",
"dark",
"medium"
],
"species": [
"pluginList"
]
},
{
"width": 48,
"height": 48,
"path": "icons/dark.png",
"scale": [
1,
2
],
"theme": [
"lightest",
"light"
],
"species": [
"pluginList"
]
}
]
}
Here is the Index.js
const { entrypoints } = require("uxp");
const { showAlert, lyrNme_BM, blendmodeFill, duplicatetoAll, lyrVersion} = require ("/lib.js");
// Set up entry points -- this defines the handler for menu items
// If this plugin had a panel, we would define flyout menu items here
entrypoints.setup({
commands: {
lyrNme_BM: () => lyrNme_BM(),
blendmodeFill: () => blendmodeFill(),
duplicatetoAll: () => duplicatetoAll(),
lyrVersion: () => lyrVersion()
// if we had other menu items, they would go here and in the manifest.json file.
}
});
I’m guessing it’s something to do with the entry points setup that im missing for v5 manifest.