Need help developing a plugin.

S
Posted By
supemoy
Feb 19, 2007
Views
402
Replies
2
Status
Closed
Hello, I am working on developing a cross platform photoshop plugin. It is my first plugin and I am a little lost. Although my plugin is a filter plugin, I am trying to call some automation routines, something along these lines:

sPSActionDescriptor->PutObject(descriptor.get(), phKeyAs, phClassRawFormat, descriptor.get());
sPSActionControl->Play(&result, phEventOpen, descriptor1.get(), phDialogSilent);

Can anyone tell me if their are any caviats to working with automation calls in a filter plugin? I have seen it work before, but I can not seem to get it right.

Thanks in advance,
-John Connor

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

MR
Mike Russell
Feb 19, 2007
wrote in message
Hello, I am working on developing a cross platform photoshop plugin. It is my first plugin and I am a little lost. Although my plugin is a filter plugin, I am trying to call some automation routines, something along these lines:

sPSActionDescriptor->PutObject(descriptor.get(), phKeyAs, phClassRawFormat, descriptor.get());
sPSActionControl->Play(&result, phEventOpen, descriptor1.get(), phDialogSilent);

Can anyone tell me if their are any caviats to working with automation calls in a filter plugin? I have seen it work before, but I can not seem to get it right.

It won’t work because Photoshop is single threaded, and an automation plugin can call a filter plugin, but not the other way around. You’ll need to spin off an external process and do your automation calls from there after your filter quits.

I wish I had an example to point you to – perhaps Toby, who also answers plugin questions, knows of one.

Mike Russell
www.curvemeister.com/forum/
S
supemoy
Feb 23, 2007
On Feb 19, 5:58 pm, "Mike Russell" <
MOVE> wrote:
wrote in message

Hello, I am working on developing a cross platformphotoshopplugin. It is my first plugin and I am a little lost. Although my plugin is a filter plugin, I am trying to call some automation routines, something along these lines:

sPSActionDescriptor->PutObject(descriptor.get(), phKeyAs, phClassRawFormat, descriptor.get());
sPSActionControl->Play(&result, phEventOpen, descriptor1.get(), phDialogSilent);

Can anyone tell me if their are any caviats to working with automation calls in a filter plugin? I have seen it work before, but I can not seem to get it right.

It won’t work becausePhotoshopis single threaded, and an automation plugin can call a filter plugin, but not the other way around. You’ll need to spin off an external process and do your automation calls from there after your filter quits.

I wish I had an example to point you to – perhaps Toby, who also answers plugin questions, knows of one.

Mike Russellwww.curvemeister.com/forum/

Thanks, I’ve got that part figured out now. I set up an automation plugin to call my filter plugin as layed out in the automationfilter project in the SDK. Thanks for your help.

-John

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

Related Discussion Topics

Nice and short text about related topics in discussion sections