English 中文(简体)
Photoshop jsx Set activeDocument to currently open document
原标题:

How do you set the activeDocument to the currently open document in Photoshop jsx ?

问题回答

if you have only one document open in photoshop, app.activeDocument is the "activeDocument" if you want the "active document" to be a different document you have to reference it as follows

consider you have two documents already open "picture1.jpg" and picture2.jpg" you would set each one to be the active document as follows

app.activeDocument = app.documents[0] // set to picture1.jpg
app.activeDocument = app.documents[1] // set to picture2.jpg 

the indexing (the numbers) refer to the open documents and start from the left most document tab([0]) and the end document tab ([n]) n being the document relative to the first counting from 0 need any more help just ask sorry i am assuming your are new to programming.





相关问题
Photoshop Batch Action Save for Web and Devices

I created an Action in Photoshop CS4. It s something like this: Open Document Change Canvas Size Save for Web & Devices Close Document Now, the "Save for Web & Devices" does all nice stuff, ...

Photoshop-like, embeddable web based image editor? [closed]

Online Image Editor - Ajax or Flex / Flash? The above wasn t really the answer that I was looking for. I m looking for an online image editor which I can embed into my pages, so users can edit ...

Output W3C compliant XHTML from image slices

When slicing and saving for web in Photoshop CS4, the HTML layout output by Photoshop is done using tags, which is not what we want. Is there a way to get Photoshop to output W3C compliant tableless ...

Photoshop style GUI design

In a tool such as Photoshop, there is a selection of tools you can click on (e.g. pen, brush etc). Once you click on a tool, you can use that tool to paint, erase etc depending on what tool is ...

热门标签