I activated the listener and took the code section for PlayeventApplyImage and put it in the sample code for MakeNew that came with the SDK. It all seems to work except for one thing: I want to apply a different (open in the background) image to the current, active image, but the code only applies the current image to itself. I compared the function to a version where I applied an image to itself and they're identical. So I'm assuming either it's impossible, or I need to find out how to add a reference to the other image to the descriptor being passed to the Play function. I haven't been able to find any kind of reference to look up available events and what their descriptors can contain. Can anyone point me towards something?
...
error = sPSActionReference-%26gt;PutEnumerated(reference, classChannel, typeOrdinal, enumTarget);
if (error) goto returnError;
error = sPSActionReference-%26gt;PutProperty(reference, classLayer, keyBackground);
if (error) goto returnError;
error = sPSActionDescriptor-%26gt;PutReference(blending, keyTo, reference);
if (error) goto returnError;
error = sPSActionDescriptor-%26gt;PutEnumerated(blending, keyCalculation, typeCalculation, enumDifference);
if (error) goto returnError;
error = sPSActionDescriptor-%26gt;PutBoolean(blending, keyPreserveTransparency, true);
if (error) goto returnError;
error = sPSActionDescriptor-%26gt;PutObject(descriptor, keyWith, classCalculation, blending);
if (error) goto returnError;
error = sPSActionControl-%26gt;Play(%26amp;result, eventApplyImage, descriptor, plugInDialogSilent);
if (error) goto returnError;
...
Thanks.
No comments:
Post a Comment