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

Creating an actual, proper filter plugin

New Here ,
Feb 24, 2009 Feb 24, 2009

Copy link to clipboard

Copied

Hi guys. I've read through the samples and have a basic filter working like I want it, but now I want to add a GUI to it to allow the user to change some settings and run the filter again.

How on earth do I do this ?

If I put up a modal dialog, then nothing happens until I click OK but then the filter runs and ends. So next I tried *always* returning a small rectangle for DoContinue and then only do stuff once I've pressed the button, but that locks PS up completely - it's like I'm taking all the time and PS won't repaint etc.

Is there an example for this ? Not many real-world filters are going to work without any parameters.

Thanks in advance...

PS. I should mention that this is for Win32 only. There won't be a mac version as it's an internal tool, so any shortcuts on offer here could be useful
TOPICS
SDK

Views

804

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
New Here ,
Feb 24, 2009 Feb 24, 2009

Copy link to clipboard

Copied

Look for the PoorMansTypeTool example in the SDK.

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 ,
Feb 24, 2009 Feb 24, 2009

Copy link to clipboard

Copied

Laughable, I looked in them all except that one assuming it had nothing to do with filters!

Thanks for the tip, off I go...

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
Participant ,
Feb 24, 2009 Feb 24, 2009

Copy link to clipboard

Copied

Plenty of filter source code on my site, http://telegraphics.com.au/sw

See, e.g., "Scramble" for a Filter with a simple UI.
http://www.telegraphics.com.au/svn/scramble/trunk/

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 ,
Feb 24, 2009 Feb 24, 2009

Copy link to clipboard

Copied

LATEST
Do all work (GUI/filtering) in filterSelectorStart.
And implement you own preview window (third-party filters can't use image window as preview).

Use filterSelectorParameters only for setting boolean variable
(detecting "Filter again call"/"Plain call")

Ignore filterSelectorContinue, advanceState() callback is superior.

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