Skip to main content
Participating Frequently
September 2, 2017
Answered

How to create artboards from script?

  • September 2, 2017
  • 2 replies
  • 5768 views

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 has been closed for replies.
Correct answer Kristian awesome andersen

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

2 replies

Participant
October 2, 2017

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

Participating Frequently
October 2, 2017

Thank you! It works

c.pfaffenbichler
Community Expert
Community Expert
September 4, 2017

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

Participating Frequently
September 4, 2017

Not yet. I will try. Thank you.