Highlighted

Artboard size won't change in action

New Here ,
Oct 01, 2020

Copy link to clipboard

Copied

Does anyone know how to change artboard size in a script? I can't get any artboard changes to show up in an action. No menu commands will take effect with actions. I also tried creating a rectangle and using the object menu to fit to selected artwork but it won't record in an action. I don't know what to do?

TOPICS
Draw and design, Scripting, Tools

Views

47

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Artboard size won't change in action

New Here ,
Oct 01, 2020

Copy link to clipboard

Copied

Does anyone know how to change artboard size in a script? I can't get any artboard changes to show up in an action. No menu commands will take effect with actions. I also tried creating a rectangle and using the object menu to fit to selected artwork but it won't record in an action. I don't know what to do?

TOPICS
Draw and design, Scripting, Tools

Views

48

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 01, 2020 0
Contributor ,
Oct 01, 2020

Copy link to clipboard

Copied

Hi, This is how I do it.

 

var ab = app.activeDocument.artboards[0];
var l = 0, t = 0, r = 100, b = -100;
ab.artboardRect = [l,t,r,b];

 

– Mark

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 01, 2020 0
Adobe Community Professional ,
Oct 01, 2020

Copy link to clipboard

Copied

you need to use "Insert Menu Item..." in the Actions Flyout Menu to record Menu Commands

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 01, 2020 0