Comments (2)
Hi @chwjshlwel ,
Thank you for your like, if you want to via JSX file to call python code you can reference this code.
In below example can help us create a menu in photoshop.
/*
// BEGIN__HARVEST_EXCEPTION_ZSTRING
<javascriptresource>
<name>pyblish</name>
<about>Pyblish for Photoshop.</about>
<category>photoshop</category>
<menu>filter</menu>
</javascriptresource>
// END__HARVEST_EXCEPTION_ZSTRING
The item tagged "name" specifies the localized name or ZString that will be displayed in the menu
The item tagged "menu" specifies the menu in which the command will appear: generate, automate, scripts, or filter
The item tagged "enableinfo" specifies the conditions under which the command will be enabled. Too complex to describe here; see plugin sdk. Should usually just be "true", and your command should report a user-comprehensible error when it can't handle things. The problem with disabling the command when it's unsuitable is that there's no hint to the user as to why a command is disabled.
The item tagged "about" specifies the localized text or ZString to be displayed in the about box for the plugin. Optional.
The item tagged "eventid" needs to be a guaranteed unique string for your plugin. Usually generated with a UUID generator like uuidgen on MacOS
*/
{
app.system("start python your/python/file.py")
}
another suggestion is we can use Qt create a Qt widget to deploy us scripts and use The above way to launch.
please let me know if that works for you.
from photoshop-python-api.
Hi @chwjshlwel I just want to confirm that is all works for you?
from photoshop-python-api.
Related Issues (20)
- 如何使用这个api调整笔刷旋转角度 HOT 1
- How to Replace Smart Layer Text with a Script
- How to hide the Photoshop window
- How to adjust HDR Toning
- Photoshop API with python multithreading HOT 2
- How to import data group txt file and export data group as file
- 无法在mac 电脑上使用 建议兼容一下 HOT 2
- `slelect` method is missing in Code Reference HOT 1
- About the bottomed API reference HOT 1
- Replacing multiple layers with images does not work; it only replaces the same layer multiple times
- PSB Save options available?
- How to get the rotation angle of a layer
- Can I give an example of applying gradients to a text layer style HOT 3
- How to import Images into Document
- 希望可以添加 接受 ps 消息弹框的 接口,如 缺失字体等等 HOT 5
- 请问如何给字体导入外部字体包 How can I import the font package externally? HOT 5
- 请问如何将多个psd以画板的形式合成为一个psd How to synthesize multiple psd into one psd in the form of sketchpad?
- 可以同时操作两个ps 吗? HOT 3
- export_layers_use_export_options_saveforweb donesn't work HOT 1
- 替换图片 能替换成功,但是控制台输出错误 发生意外。', ('非法参数 - 参数 1\n- 缺少必需值' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photoshop-python-api.