vb.net - Photoshop Automation -
i want run photoshop action through visual basic ui. mean if user click on button photoshop action should run.
can give hint on that? thank you
public class form1 dim appref dim app dim file dim javascriptfile dim nums(2) dim argsarr() dim photoshopapp photoshop.application dim photoshopdoc photoshop.document dim curlayer photoshop.artlayer private sub button1_click(byval sender system.object, byval e system.eventargs) handles button1.click appref = createobject("photoshop.application") app.load(file("c:\border-2.atn")) app.doaction(thisqueue.dequeue) end sub
you have load actions or actionsets within photoshop first! can't load or invoke actions you've tried it. "app.load (file (..." refers load images.
private sub photoshopdoaction(byval action string, byval actionset string) dim ps photoshop.application ps = new photoshop.application if ps.application.documents.count > 0 ps.doaction(action, actionset) end if end sub
Comments
Post a Comment