Automation through SDK or something else?

SD
Posted By
Scott D Lindley
Sep 25, 2003
Views
353
Replies
8
Status
Closed
I need some advice in Photoshop automation. I am investigating using Photoshop 7 for the following general process:

1) Using dialog windows (in a custom application written in Java, VB, C++), have the user input parameters such as overall document size, number of images in the document, individual image size, number of rows and columns, image mask to be used, etc. These parameters will change from job to job.

2) Using the Java application, call Photoshop to build a document (custom contact sheet) from a job folder of individual images, using the above specified parameters. The document would include text under the images that is imported from a tab-delimited file. On some jobs, the text may need to be on a curve.

In effect, I would like to use Photoshop as an imaging engine, but be able to control it from a 3rd party application. In this way, I would be able to quickly automate the production of the custom contact sheets, from job to job. I’ve thought about creating an action in Photoshop to do this, but there are so many variables from job to job that countless actions would be needed. Will the Photoshop7 SDK work for this? My limited understanding of the SDK is that it is primarily used for plug-in creation. Would a custom plug-in work in this situation, or is there some other way to accomplish this?

Thanks.

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

DM
Don McCahill
Sep 25, 2003
Re: On some jobs, the text may need to be on a curve.

Currently PS cannot create text on anything other than a straight path. (This may change in the new version, due out within a few weeks.)
DM
dave milbut
Sep 26, 2003
you should be able to do what you want with the sdk. i was able to bring the photoshop objects (application and document) into vb and automate stuff, just playing around, examining the object, determining the props and methods and going from there. if i had the sdk documentation it would be killer easy.
LL
Larry Ligon
Sep 26, 2003
Go to the Adobe web site and download the Scripting Plug-in. That has Visual Basic examples.

Larry
SD
Scott D Lindley
Sep 26, 2003
Thanks for the help!
DM
dave milbut
Sep 26, 2003
have fun!
P
Phosphor
Sep 29, 2003
Oh, one more thing. Since Don pointed out that PS7 does not elegantly handle curved text (other than warping it), I will probably need to use a 3rd party plug-in to do this. I’ve seen OttoPaths recommended on this forum. Although I haven’t experimented with this plug-in yet, I’m assuming that you can input parameters for flowing the text onto a PS path. Since my jobs will vary in the exact curvature of these paths, these parameters will change from job to job.

Does anyone know if you can give input parameters to a PS plug-in, using Java or VB scripting? I know you can change standard Photoshop parameters like document size, crop, use of filters, layers, etc. What I’m not sure of is if you’re limited to what’s already available in Photoshop, or can you also have access to the input parameters in a 3rd party plug-in, like OttoPaths? (For instance, on one job I may want to use a radius of 10 pixels for my curve path, but on another job I may want to use a radius of 15 pixels. I would like to be able to specify the radius as a variable in my Java script.)

Thanks.
LS
Lindley, Scott D
Sep 29, 2003
Ah, I think I’ve found how you do this. It sounds like you can use the ScriptingListener to record what you want done with the 3rd party plug-in. You then take the script that was generated by the Listener, replace the values you input with variables, and now that script is available for use from job to job.
MD
milbut, dave
Sep 29, 2003
ps cs (8) will include text on a path. announced today.

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections