Skip to main content
Participant
August 14, 2025
Answered

UXP-plugin panel entrypoints position set is doesn‘t work

  • August 14, 2025
  • 1 reply
  • 372 views

uxp plugin,i want set the plugin position to the right panel in PS, the code like blew:

  "entrypoints": [
    {
      "type": "panel",
      "id": "layout",
      "label": {
        "default": "some label"
      },
      "location": {
        "type": "panel",
        "dockConfig": {
          "dockTarget": "right",
          "dockState": "docked",
          "group": "pluginPanels"
        }
      },
      "minimumSize": {
        "width": 230,
        "height": 200
      },
      "maximumSize": {
        "width": 2000,
        "height": 2000
      },
      "preferredDockedSize": {
        "width": 280,
        "height": 500
      },
      "preferredFloatingSize": {
        "width": 280,
        "height": 500
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
        {
      "type": "panel",
      "id": "navbar",
      "label": {
        "default": "图虫AI导航栏"
      },
      "location": {
        "type": "panel",
        "dockConfig": {
          "dockTarget": "right",
          "dockState": "docked",
          "group": "pluginPanels"
        }
      },
      "minimumSize": {
        "width": 100,
        "height": 200
      },
      "maximumSize": {
        "width": 200,
        "height": 400
      },
      "preferredDockedSize": {
        "width": 100,
        "height": 200
      },
      "preferredFloatingSize": {
        "width": 100,
        "height": 200
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    }
  ],

set the "location", but it is not works 

i want set the position like this:

 

 

Correct answer Ciccillotto

In uxp and with cep panels you cannot set the panel to a specific position.

1 reply

Inspiring
August 14, 2025

Im pretty sure UXP plugins do not allow you to hard-code a default docking location

wayne0529Author
Participant
August 14, 2025

so do u know how to set the dock location?thks!

Inspiring
August 14, 2025

You can only do it manually, from a user POV, once the plugin is in use. If you dock it to the location you wanted, Photoshop is going to remember it.