• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to keep a photoshop plugin from being unloaded

New Here ,
Mar 01, 2012 Mar 01, 2012

Copy link to clipboard

Copied

I've written an automation plugin for photosho with Visual Studio 2005 & Photoshop SDK. When I click the menu, I want to show a non-modal dialog, which is created by ADM. Finally, when I got everything ready, and ran the plugin, the dialog appeared just fine. But when I looked inside the "module window" in VS, I couldn't find my plugin. This could  cause serious trouble, cause all my callback functions are gone, too. How did this happen? Can I keep the plugin from being unloaded when the dialog is showing?

TOPICS
SDK

Views

2.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Mar 01, 2012 Mar 01, 2012

No.

Do not try to make a 'non modal dialog'.

Your only official option is via the Panel Guide.

Persistent only works for automation plug-in types. The Persistent flag is there so your automation plug-in can get callbacks from Photoshop. It is not for UI support. You will probably not get the events you need in your 'non modal dialog'. You will interfere with how events are handled in Photoshop. Your plug-in may seem to actually work but it will be very buggy and cause crashes.

We realize that devel

...

Votes

Translate

Translate
Adobe
Adobe Employee ,
Mar 01, 2012 Mar 01, 2012

Copy link to clipboard

Copied

See the FAQ:

3.1.3 What can I not do with the Photoshop API?

No non-modal plug-ins. No plug-in tools. No plug-in floating windows. No plug-in palettes. No plug-in brushes. No adding or changing menus.

However,

You can use the "Panel Guide" and create a panel via Flash and have your automation plug-in code converted to JavaScript. Or you could call your automation plug-in from JavaScript.

More info here:

http://www.adobe.com/devnet/photoshop.html

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 01, 2012 Mar 01, 2012

Copy link to clipboard

Copied

Thanks for your answer. But it's too comlicated.

If I add "Persistent" to PiPL and make the plug-in stay loaded until Photoshop quits, everything will be solved, right?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 01, 2012 Mar 01, 2012

Copy link to clipboard

Copied

No.

Do not try to make a 'non modal dialog'.

Your only official option is via the Panel Guide.

Persistent only works for automation plug-in types. The Persistent flag is there so your automation plug-in can get callbacks from Photoshop. It is not for UI support. You will probably not get the events you need in your 'non modal dialog'. You will interfere with how events are handled in Photoshop. Your plug-in may seem to actually work but it will be very buggy and cause crashes.

We realize that developers really want to do this but at the present time there is no API to support non modal dialogs in the C/C++ Photoshop API.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 07, 2012 Mar 07, 2012

Copy link to clipboard

Copied

Rong,

You definitely want to heed Tom's warning. While you _may_ get the ADM palette up and running, from our experience you'd be looking at A BIG PILE of work to resolve all the issues associated with it, since just as Tom said PS is not really designed for this task. And then again, ADM is dead, so why bother?

I know that probably 99% of C++ programmers do not want to go to the Flash land willingly, but this seems to be the only practical way.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 13, 2012 Mar 13, 2012

Copy link to clipboard

Copied

LATEST

Thanks for your advice!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines