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