Skip to content

Issue in /src/pages/guides/devtool/index.md #493

@ldnk85

Description

@ldnk85

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions