-
1. Re: What information can I get from the descriptor in event callback function?
Royt2011 Jun 30, 2011 4:02 AM (in response to Royt2011)sPSActionControl->AddNotify( pluginRef, eventFilter, CallBack, this );
void CallBack( DescriptorEventID eventID, PIActionDescriptor desc, PIDialogRecordOptions opt, void *data ) { ... }
In CallBack function, Can I get the unique string of the filter other than the filter's name? If the filter has 'aete' resource ?
-
2. Re: What information can I get from the descriptor in event callback function?
Tom Ruark Jun 30, 2011 5:53 PM (in response to Royt2011)For Filters the eventID should be unique. Or in other plug-in cases the keyUsing ID should be unique.
Make sure you generate a unique id for your filter and place that into your HasTerminology resource. Then use that resourceID and StringIDToTypeID to get your eventID. Now your callback will only get called for your plug-in and you know it is B-plugin. Because for A-plugin and C-plugin and X-plugin you generated another id for them to use.
This is from AutomationFilterPiPL.r, the 'AuFi' is ignored because Photoshop found a string id as the fourth paramater.
You can use the four character codes but the chances of you being unique become less likely.
HasTerminology
{
'AuFi',
'AuFi',
16000,
"adc931a0-cfe2-11d5-98bf-00b0d0204936"
},
-
3. Re: What information can I get from the descriptor in event callback function?
Royt2011 Jul 1, 2011 1:44 AM (in response to Tom Ruark)Oh, very very thank you. that helps me a lot.


