Hello,I am attempting to require the imaging
module from the "photoshop"
package in my UXP plugin with the follow code:
const imaging = require("photoshop").imaging;
However, this is resulting in imaging being undefined.
PS version is 23.5.2
document link:
https://developer.adobe.com/photoshop/uxp/2022/ps_reference/media/imaging/#getpixels
manifest.json
{
"id": "com.adobe.uxp.starter.vue",
"name": "UXP Vue Starter Plugin",
"version": "1.0.0",
"main": "index.html",
"manifestVersion": 4,
"host": {
"app": "PS",
"minVersion": "23.0.0"
},
"entrypoints": [
{
"type": "panel",
"id": "helloworld",
"label": {
"default": "Hello World"
},
"minimumSize": { "width": 230, "height": 200 },
"maximumSize": { "width": 2000, "height": 2000 },
"preferredDockedSize": { "width": 230, "height": 300 },
"preferredFloatingSize": { "width": 230, "height": 300 },
"icons": [
{
"width": 23,
"height": 23,
"path": "icons/dark-panel.png",
"scale": [1, 2],
"theme": ["darkest", "dark", "medium"],
"species": ["chrome"]
},
{
"width": 23,
"height": 23,
"path": "icons/light-panel.png",
"scale": [1, 2],
"theme": ["lightest", "light"],
"species": ["chrome"]
}
]
}
],
"icons": [
{
"width": 48,
"height": 48,
"path": "icons/plugin.png",
"scale": [1, 2],
"theme": ["darkest", "dark", "medium", "lightest", "light", "all"],
"species": ["pluginList"]
}
]
}
Any guidance on why this is happening or how I should be properly requiring the imaging module would be greatly appreciated. If additional information is needed, please let me know.
Thank you!