Skip to main content
Inspiring
June 15, 2017
Question

Is it possible to return the Layer Name after I preform a Merge Visable action?

  • June 15, 2017
  • 1 reply
  • 586 views

I've learned that Photoshops action system is not the most robust and I find I'm scripting more than anything but I am looking for a way to return the layer name after calling evenetMergeVisible:

    error = sPSActionControl->Play(&result, eventMergeVisible, desc, plugInDialogSilent);

    if (error) goto returnError;

I don't know how I can use sPSActionDescriptor->GetName() to return a uninitialized PIActionDescriptor once I call play on it. There must be a way I can retrieve the created layers name, or even element...

This topic has been closed for replies.

1 reply

i73Author
Inspiring
June 15, 2017

I now see that it selects the layer that's created and I guess I preform my actions on that... Is this really the way how I use the C++ SDK? I rely on the front end to drive logic?