Skip to content

Expose AYON script editor to Photoshop integration and expose eval method on the Photoshop stub - #74

Merged
BigRoy merged 5 commits into
developfrom
enhancement/add_script_editor
Feb 23, 2026
Merged

BigRoy merged 5 commits into
developfrom
enhancement/add_script_editor

Conversation

@BigRoy

@BigRoy BigRoy commented Feb 21, 2026

Copy link
Copy Markdown
Member

Changelog Description

Expose AYON script editor to Photoshop integration and expose eval method on the Photoshop stub.

Additional review information

Note in certain cases triggering the eval will, e.g.

from ayon_photoshop.api import stub

stub().eval("""
// Create new document
var doc = app.documents.add();
""")

This may hang the script editor, killing the web server process. But often it runs fine.
We may need to figure out how to make it run the calls a different way so it doesn't.

Also, it doesn't seem like the eval call returns any value back to Python. @kalisp any ideas?

image

Testing notes:

  1. Script editor opens
  2. Script editor works

…eval()` method to allow running arbitrary javascript snippets against Photoshop - allows easier testing/dev
@BigRoy BigRoy self-assigned this Feb 21, 2026
@BigRoy BigRoy added type: enhancement Improvement of existing functionality or minor addition community Issues and PRs coming from the community members labels Feb 21, 2026
Not completely bulletproof as it sometimes returns just `EvalScript error`
@kalisp

kalisp commented Feb 23, 2026

Copy link
Copy Markdown
Member

With this commit dab8b38 it works (somehow)
image

RustDesk_EkfdBdasyI

@kalisp

kalisp commented Feb 23, 2026

Copy link
Copy Markdown
Member

Should be merged ONLY after #72 (it bumps up extension again)

…o enhancement/add_script_editor

# Conflicts:
#	client/ayon_photoshop/api/extension.zxp
#	client/ayon_photoshop/api/extension/CSXS/manifest.xml
@BigRoy
BigRoy merged commit 202095c into develop Feb 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Issues and PRs coming from the community members type: enhancement Improvement of existing functionality or minor addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants