Photoshop UXP: Original artboard gets corrupted when creating output artboards programmatically
Hi everyone,
We are developing a Photoshop UXP plugin and have encountered an issue while creating output artboards programmatically.
Our plugin supports the following output modes:
- ✅ Single output added as a layer – Works correctly.
- ✅ Multiple outputs added as layers – Works correctly.
- ❌ Single output created as a separate artboard – The original artboard becomes corrupted.
- ❌ Multiple outputs created as separate artboards – The original artboard becomes corrupted.
Issue
Whenever the plugin creates one or more separate artboards, the original artboard is unexpectedly modified.
The new artboards are created successfully, but the original artboard no longer remains intact. Some of the original artwork appears to be moved or reassigned into the newly created artboards, causing the original design to be altered.
This behavior occurs only when generating outputs as separate artboards. The same processing pipeline works correctly when outputs are added as layers.
Environment
- Photoshop: [Your Photoshop version]
- Windows 11
- Photoshop UXP Plugin
- Plugin version: 0.0.1
Questions
- Is this a known limitation or issue with Photoshop UXP when creating artboards programmatically?
- Is there a recommended workflow for creating output artboards while preserving the original artboard?
- Has anyone encountered similar behavior with UXP APIs or BatchPlay when working with artboards?
I can provide a sample PSD, screen recording, screenshots, and reproduction steps if needed.
Any guidance would be greatly appreciated.
Thank you!
