Question
How to select or call a selection plugin from menu using automation plugin .
SPErr PlayGetting History Info(/*your parameters go here*/void)
{
PIActionDescriptor result = NULL;
DescriptorTypeID runtimeKeyID;
DescriptorTypeID runtimeTypeID;
DescriptorTypeID runtimeObjID;
DescriptorTypeID runtimeEnumID;
DescriptorTypeID runtimeClassID;
DescriptorTypeID runtimePropID;
DescriptorTypeID runtimeUnitID;
SPErr error = kSPNoError;
// Move this to the top of the routine!
PIActionDescriptor desc0000000000000e48 = NULL;
error = sPSActionDescriptor->Make(&desc0000000000000e48);
if (error) goto returnError;
// Unicode String as UTF8: Open
error = sPSActionDescriptor->PutString(desc0000000000000e48, keyName, "Open");
if (error) goto returnError;
error = sPSActionDescriptor->PutInteger(desc0000000000000e48, keyItemIndex, 2);
if (error) goto returnError;
error = sPSActionDescriptor->PutInteger(desc0000000000000e48, keyCount, 3);
if (error) goto returnError;
error = sPSActionDescriptor->PutBoolean(desc0000000000000e48, keyAuto, true);
if (error) goto returnError;
error = sPSActionDescriptor->PutBoolean(desc0000000000000e48, keyHistoryBrushSource, false);
if (error) goto returnError;
error = sPSActionDescriptor->PutBoolean(desc0000000000000e48, keyCurrentHistoryState, false);
if (error) goto returnError;
error = sPSActionDescriptor->PutInteger(desc0000000000000e48, keyID, 64);
if (error) goto returnError;
error = sPSActionControl->StringIDToTypeID("Getting History Info", &runtimeEventID);
if (error) goto returnError;
error = sPSActionControl->Play(&result, runtimeEventID, desc0xe48, plugInDialogSilent);
if (error) goto returnError;
returnError:
if (result != NULL) sPSActionDescriptor->Free(result);
if (desc0000000000000e48 != NULL) sPSActionDescriptor->Free(desc0000000000000e48);
return error;
}
SPErr PlayGetting History Info(/*your parameters go here*/void)
{
PIActionDescriptor result = NULL;
DescriptorTypeID runtimeKeyID;
DescriptorTypeID runtimeTypeID;
DescriptorTypeID runtimeObjID;
DescriptorTypeID runtimeEnumID;
DescriptorTypeID runtimeClassID;
DescriptorTypeID runtimePropID;
DescriptorTypeID runtimeUnitID;
SPErr error = kSPNoError;
// Move this to the top of the routine!
PIActionDescriptor desc0000000000000e50 = NULL;
error = sPSActionDescriptor->Make(&desc0000000000000e50);
if (error) goto returnError;
// Unicode String as UTF8: WorkOSE Studio
error = sPSActionDescriptor->PutString(desc0000000000000e50, keyName, "Studio");
if (error) goto returnError;
error = sPSActionDescriptor->PutInteger(desc0000000000000e50, keyItemIndex, 3);
if (error) goto returnError;
error = sPSActionDescriptor->PutInteger(desc0000000000000e50, keyCount, 3);
if (error) goto returnError;
error = sPSActionDescriptor->PutBoolean(desc0000000000000e50, keyAuto, true);
if (error) goto returnError;
error = sPSActionDescriptor->PutBoolean(desc0000000000000e50, keyHistoryBrushSource, false);
if (error) goto returnError;
error = sPSActionDescriptor->PutBoolean(desc0000000000000e50, keyCurrentHistoryState, true);
if (error) goto returnError;
error = sPSActionDescriptor->PutInteger(desc0000000000000e50, keyID, 67);
if (error) goto returnError;
error = sPSActionControl->StringIDToTypeID("Getting History Info", &runtimeEventID);
if (error) goto returnError;
error = sPSActionControl->Play(&result, runtimeEventID, desc0xe50, plugInDialogSilent);
if (error) goto returnError;
returnError:
if (result != NULL) sPSActionDescriptor->Free(result);
if (desc0000000000000e50 != NULL) sPSActionDescriptor->Free(desc0000000000000e50);
return error;
}
i want to call studio which is a selection plugin from automation plugin
the above code is the history when then menu is clicked .
how do i make use of it.
I would really appreciate any thoughts/suggestions on the matter.
Thanks all.
