Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Artboard size won't change in action

Community Beginner ,
Oct 01, 2020 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

333
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
community guidelines
Adobe
Community Expert ,
Oct 01, 2020 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

Votes

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
community guidelines
Community Expert ,
Oct 01, 2020 Oct 01, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines