Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Plugin and Companion App SDK
Viewing all articles
Browse latest Browse all 54282

Execute hidden filter with explicit target

$
0
0

Hello,

I would know if it is possible execute, in automation filter, an hidden filter with explicit target. I would apply a modified hidden filter on all image open in photoshop,

at this moment I use PIUSelectByIndex to select an open document and after I execute hidden filter on selected image.

How could I execute directly hidden filter on the image without use PIUSelectByIndex?

I try something like:

 

func()

{

...

    sPSActionReference->Make(&reference);

    sPSActionReference->PutIndex(reference,classDocument,1); //1,2,3... and so on

 

    sPSActionDescriptor->Make(&descriptor);

    sPSActionDescriptor->PutReference(descriptor,keyNull,reference);

 

    // This code is copied by Automation Filter example

    sPSActionDescriptor->PutEnumerated(descriptor,keyCommand,typeCommand, command);

    sPSActionControl->StringIDToTypeID(HiddenUniqueString,&hiddenEventID) ;

    sPSActionControl->Play(&result,hiddenEventID, descriptor, plugInDialogSilent);

...

}

 

but it doesn't work, hidden is always applied on the active document.

 

Thanks,

Franco


Viewing all articles
Browse latest Browse all 54282

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>