Can I create ArtBoards via scripting in PS?

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

neuDev33
Posts: 1
Joined: Fri Apr 28, 2017 3:54 pm

Can I create ArtBoards via scripting in PS?

Post by neuDev33 »

Can I create ArtBoards in PS programmatically?

When I inspect an Artboard in the ExtendScript Toolkit, I see that it is a LayerSet. I know how to add LayerSets to a document via ExtendScript(app.activeDocument.layerSets.add()), but I'm not sure how to convert this to an ArtBoard.

Any ideas?
iMatt
Posts: 3
Joined: Fri Sep 22, 2017 8:13 pm

Re: Can I create ArtBoards via scripting in PS?

Post by iMatt »

There's a very useful forum post here:
https://forums.adobe.com/thread/1867670

That outlines accessing a number artboard properties and methods that are not exposed in the Photoshop DOM.
Otherwise you'll need to use the script listener to do anything with artboards. The documentation hasn't been updated to include them.