Skip to main content
Participating Frequently
Sep 2, 2017 10:58 AM UTC
Answered

How to create artboards from script?

I need create about 20 artboards different sizes from scripting. How can I do it?

Manual PS CC 2015 doesn't even contain a word "artboard"

After I will try to place at the artboards some linked smart objects, texts and so one.

This topic is closed to new replies. Start a new post to keep the conversation going.
Participant
Oct 2, 2017 8:41 AM UTC

HI

I make a lot of static banners in my daily work, and manually making artboards sucks! So i made this script to help me out.)

it take an Array of width and height  as manny as you want ( var sizes = [[488,150],[744,236]] )
and then in a for loop runs a function ( createNewArtboard ) and space them out verticaly with a 20pixel spacing.

download it here . ----->  Dropbox - makeartboards.js

Maybe you can use it.

regards Kristian

9 replies

Participant
Oct 2, 2017 8:41 AM UTC

HI

I make a lot of static banners in my daily work, and manually making artboards sucks! So i made this script to help me out.)

it take an Array of width and height  as manny as you want ( var sizes = [[488,150],[744,236]] )
and then in a for loop runs a function ( createNewArtboard ) and space them out verticaly with a 20pixel spacing.

download it here . ----->  Dropbox - makeartboards.js

Maybe you can use it.

regards Kristian

Translate
Participating Frequently
Oct 2, 2017 9:55 PM UTC

Thank you! It works

Translate
c.pfaffenbichler
Community Expert
Community Expert
Sep 4, 2017 11:03 AM UTC

Have you tried using ScriptingListener-plugin to record the code for the operation and then wrap the code in a function yet?

Translate
Participating Frequently
Sep 4, 2017 12:13 PM UTC

Not yet. I will try. Thank you.

Translate