-
Notifications
You must be signed in to change notification settings - Fork 148
Description
It seems that the move command for layers and folders in UXP does not work correctly. Debug shows the move is successful, but in Photoshop the layers are completely messed up. I wrote a plugin to automatically create layers into groups. I set up the basic logic as follows:
A: 1, 2, 3
B
C
D: 4, 5
This means Group A at the bottom contains layers 1, 2, 3.
B is a layer above Group A.
C is a layer above B.
D is a group containing layers 4, 5 and is above C.
But when I click to create layers, in Photoshop it becomes: Group D contains Group A at the top, containing layers 3, 2, 1, and above layers B, C, 5, 4. Group A is on the same level as layers B, C, 5, 4.
I have tried many ways to call this move command properly but failed. I struggled with deciding whether to process groups first or layers first, then handle them sequentially, etc. All attempts failed even though debug always showed I had moved exactly as intended, but Photoshop’s display was not as expected.
Is this a UXP bug?