Photoshop 插件选项对话框 UI
我正在为 Photoshop 编写一个文件格式插件,我需要弹出一个窗口,其中包含加载和保存选项,例如复选框组合框等,我该怎么做?
Im writting a fileformat plugin for photoshop and I need to popup a window with options on load and save such as checkboxes comboboxes etc, how would I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最新的 Adobe 的 SDK 有许多使用对话框和窗口的示例。
在
保存
或另存为
选项上,您的插件需要处理formatSelectorOptionsStart
参数并在该代码块中打开选项对话框。在
Open
操作中,没有正常的方式来提示选项(您会提示什么样的选项?),但可以显示对话框的事件包括:formatSelectorFilterFile
、formatSelectorReadPrepare
、formatSelectorReadStart
、formatSelectorReadContinue
和formatSelectorReadFinish
以下是处理不同选择器的插件的示例入口点:
The latest SDK from Adobe has a number of examples of using dialogs and windows.
On the
Save
orSave As
options, your plugin needs to handle theformatSelectorOptionsStart
param and open your options dialog in that code block.On the
Open
action, there's no normal way to prompt for options (what kind of options would you prompt for?) but the events you could display dialogs from include:formatSelectorFilterFile
,formatSelectorReadPrepare
,formatSelectorReadStart
,formatSelectorReadContinue
, andformatSelectorReadFinish
Here is an example entry point to your plugin that handles the different selectors: