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

Is it possible to create a panel with buttons for scripts

Engaged ,
Nov 07, 2018 Nov 07, 2018

I have collected several scripts that do some great things, but I have always wanted a UI button or a pallet to trigger them.

Specifically, I often want to align objects both Horizontally and Vertically (top center, top left, etc) a button would be great to align items on both axes.

Plus I would like to be able to align items based on a specified reference edge:

alignItems(key, keyedge, lst, lstedge) where key was the key item - either calculated or declared, keyedge  was the alignment edge declared or calculated, lst was the list of elements to align to the key, and lstedge was the edge (declared or calculated) to align.

This would allow me to alignItems(key, "right", selection, "left"); and it would align the selection's left edge with the key's right edge.

When I say "calculated", I mean that for some alignment methods and no general key selected, you can calculate the transformation point based on the selection.

So 5 items selected with no key set to align left would find the leftmost element and align all objects to that left edge.

But all of this would be so much easier if you had a pallet with a button that you could press. Is this possible currently?

378
Translate
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 ,
Nov 07, 2018 Nov 07, 2018
LATEST
Translate
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