Passing an artLayer to an ExternalObject call

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

ApWizard
Posts: 9
Joined: Fri Dec 16, 2016 7:39 am

Passing an artLayer to an ExternalObject call

Post by ApWizard »

Hello guys!
So, is this even possible?
Scenario:
use external object, called from an extension, to manipulate an image and get it back to Photoshop.

Ideally a button (or some other components, like a slider etc...) calls the ExternalObject function, but how do you pass the image/artLayer to this external object?

Do you have some example code to show?

Another question: what if the external object is developed in C# instead of C/C++?
ApWizard
Posts: 9
Joined: Fri Dec 16, 2016 7:39 am

Re: Passing an artLayer to an ExternalObject call

Post by ApWizard »

I think that's how an hybrid extension works, isn't it?