Skip to content
Projects

Achuan-2/illustrator_sci_toolbox

View on GitHub

About

Adobe Illustrator 科研组图插件,支持复制粘贴相对位置、图片一键自动排列,一键添加子图label | Adobe Illustrator plugin, specifically designed for scientific illustration, supports copy-pasting with relative positioning, batch setting of shape dimensions, one-click automatic arrangement of images, and one-click addition of subplot labels.

Science & Engineering

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+4
in 15 days
+7
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_EN.md

Original

README

English| 简体中文

Plugin URL: Achuan-2/illustrator_sci_plugin

1 Development Background

Previously, to quickly arrange images and import Markdown notes for group meetings, I wrote a PPT plugin, open-sourced on GitHub, which has now exceeded 500 stars: Achuan-2/SlideSCI, Blog: SlideSCI README

Recently, while writing a paper, arranging images in Adobe Illustrator can be quite tedious.

  • For example, if I need to add the same label to different images in the same position, it's very troublesome with native tools because I can only get absolute positions and have to calculate relative positions myself.
  • For example, if I need to batch change the width and height of images, after selecting all images and entering specific values, it actually changes the overall size, and each image's size isn't the specific value I entered.
  • For example, if I want to add labels to images one by one, changing numbers and aligning them is also tiring.

2 Feature Introduction

  • Scalebar: while the Scalebar tab is open, selecting an image automatically loads its FOV and existing scalebar settings. FOV and existing bar edits are saved automatically; no read, import or save buttons are needed. FOV supports nm, μm, mm, cm, m and inch and is stored in the image note, preserving existing notes. The bar unit defaults to the FOV unit and can be selected independently; switching units converts the value while preserving physical length. Supports horizontal Width / vertical Height, thickness in points, bar color, optional text, font color/size/bold and four corner positions. Bars group with the image by default. Images without a bar keep an Add Scalebar button. Linked TIFF calibration is detected from ImageJ, OME or explicit FOV metadata; enter the FOV manually if copying or embedding discarded calibration. Printing DPI alone is not treated as scientific calibration.

    Horizontal bars require only the FOV width; vertical bars require only the FOV height. The other dimension can remain unknown. Text aligns with the corner-facing bar edge: left/right for horizontal bars and top/bottom for vertical bars. Edited bar/text styles and represented length are remembered across panel reloads and reused for other images. New images still default to their own FOV unit; existing bars load their own saved parameters.

    Zoom images inherit the source scalebar style, unit and represented length, which can be adjusted separately for each zoom. Length is recalculated using the crop's physical FOV and the zoom's current dimensions; crop edits and manual zoom resizing are tracked when automatic zoom updates are enabled. The bar cannot exceed its image/crop FOV. After resizing the source image independently, editing the bar settings redraws it at the new dimensions; scaling the image and scalebar group together keeps their proportion.

  • Color Palettes: four groups at the top (Journal Palettes, Categorical, Sequential, and Diverging) contain 23 built-in scientific palettes. Left-click a color to apply a fill to selected shapes; right-click to copy its HEX or RGB value. Use the settings icon beside the groups to open a dialog for adding, renaming, and deleting any group. Create named palettes with one or more colors; all palettes, including defaults, can be edited, moved, and deleted directly. Palette edits and deletions, group names and deletions, the current group, and the copy format are remembered locally. See palette sources and behavior.

  • Merge Channels: the Merge Channels group in the Pseudocolor tab combines 2–7 grayscale images, existing pseudocolor groups, or a mixture. Tinted groups keep their colors; grayscale images use default colors in selection order. Read Selected Channels to change individual colors or exclude channels; dropdowns include gradient color previews. Merging uses copies of the source images retained in each group. Copies with different dimensions are resized to the first included channel's width and height, aligned at their top-left corners, and blended using Screen in an editable group; all originals are kept. Screen differs from pixel addition when channels share color components.

  • Pseudocolor images: the Pseudocolor tab displays Pseudocolor and Merge Channels groups together. Coloring uses editable layers only, with red, green, blue, cyan, magenta, yellow and gray. Each dropdown and its options show black-to-color gradient previews. Originals are replaced in place by default; enable Keep Originals to create a copy on the right. Applying to an existing pseudocolor group updates its color in place while retaining its position, size and source copy. Earlier groups are recognized; new groups remain recognizable after renaming. A black backdrop and Darken blending prevent colored edge fringes. Transparent areas appear black; color images keep their existing RGB components. No image export, pixel processing or re-embedding is required, and linked source files are never overwritten.

  • Copy and Paste Relative Position:

    Usage Tips

    • Manually set the relative position of two objects: Modify ΔX and ΔY to manually set the relative position of two objects, for example, to make text 2mm from the top-left corner of the rectangle in the x-direction and 2mm in the y-direction.
    • When copying the relative position of one object, the default reference is the artboard, so you can move a shape out first, then modify the shapes below, and then paste back to the original position.
    • When copying the relative positions of more than two objects, the default reference is the first object, copying the relative positions of the subsequent objects to the first one. You can change the Order to adjust the object sequence. The plugin supports determining the order based on vertical position, horizontal position, and layer order. If you want to use the last object as the reference, check "Reverse Order", so the last object becomes the reference point.
    • When you need to unify positions across multiple objects on different artboards, check "Artboard Reference".

    Usage Scenarios

    • Manually set the relative position of two objects.
    • Quickly unify arrangement methods: If one group of images is already arranged, and you want to arrange another group in the same way, you can copy and paste the relative positions with one click to arrange them instantly.
    • Quickly unify label positions: If one image has a label, and other images need the same label position, you can quickly unify them.
    • You can copy the positions of multiple selected shapes based on the artboard for cross-artboard position unification.
    PixPin_2025-09-10_16-18-33
    PixPin_2025-08-06_17-59-37

​

  • Batch Copy Shape Size:

    Copy the width and height of one shape or manually input width and height, then click Paste Size to batch paste to the selected shapes.

    There are checkboxes in front of width and height, default all checked. Check only one, for example, only width, then only paste width, height adjusts automatically based on original aspect ratio.

    PixPin_2025-08-06_17-56-39​

  • One-Click Arrange Images: Batch adjust image width and height, one-click arrange neatly.

    • Column: Set how many columns to arrange into.
    • Row Gap: Row spacing.
    • Column Gap: Column spacing.
    • Object Size:
      • Keep Original Size: Keep original dimensions of each object.
      • Auto Adjust: Proportional scaling so objects in the same row share the same height (or column width if 1 column).
      • Custom Size: Specify custom width and/or height.
    • Order: Determine the order of objects. The plugin supports determining order based on vertical position, horizontal position, and layer order.
    PixPin_2025-08-06_17-59-37
    PixPin_2025-08-06_17-59-37

​

  • Align & Distribute

    • Icon buttons align the selection to its overall left, horizontal center, right, top, vertical center or bottom bounds, with a combined center button. Select at least two objects.
    • Distribute left/center/right or top/center/bottom anchors evenly with both end objects fixed. Select at least three objects. Equal-gap distribution and spacing copy/paste remain available.
  • Swap Positions of Two Shapes

    Choose one of nine anchors in the icon grid: top-left/center/right, left-center/center/right-center, or bottom-left/center/right. Both objects keep their original dimensions.

    Uses

    • A group of images is already laid out, copy a set, then use the swap position function to replace the new images with the original ones.
    • After grouping images, need to modify, swap the positions of two images.
    PixPin_2025-08-09_22-50-15
    PixPin_2025-08-06_17-59-37

​

  • One-Click Add Labels

    Usage Tips

    • After adding labels, the offset input box turns red, modifying the value will automatically and real-time change the label offset, also supports mouse scroll to modify. To exit this state, just click any other button or input box.
    PixPin_2025-09-10_16-34-58
    PixPin_2025-09-10_16-09-36

3 How to Use This Plugin

  1. Download the ZXP installer or ZIP distribution using the Baidu or Quark cloud drive links in GitHub Releases. The installer targets Illustrator CC 2018 (22.0) or later; individual host versions still require testing.

    PixPin_2025-09-13_09-24-45
  2. Installation Method

    【Method 1: ZXP File Installation】

    After downloading the zxp file, install ZXP/UXP Installer, open the software and drag the zxp file into it for installation.

    PixPin_2025-09-10_20-49-35 PixPin_2025-09-13_09-22-10 PixPin_2025-09-13_09-22-15

    Remember to restart Illustrator after installation!!!

    【Method 2: ZIP File Installation】

    The ZIP is identical to the signed ZXP, with only the file extension changed. Extract it into a folder and copy that folder into the CEP extensions directory: %APPDATA%\Adobe\CEP\extensions on Windows, or ~/Library/Application Support/Adobe/CEP/extensions on macOS. Ensure CSXS/manifest.xml is directly inside the extension folder.

    Remember to restart Illustrator after installation!!!

    【Set PlayerDebugMode】

    • Method 1 (ZXP Installer): The latest version has been repackaged with clean signing and timestamping, so setting PlayerDebugMode is usually not required.

    • Source development: Enable PlayerDebugMode for the generated development extension. For an installed ZXP, first confirm that installation succeeded before troubleshooting a blank panel:

    • Windows Solution (Choose one):

      • Recommended (One-Click): Double-click the 开启PlayerDebugMode.reg file in the plugin root directory and click "Yes" to merge into registry.

      • Manual Setup: Press Win+R, enter regedit, navigate to HKEY_CURRENT_USER\Software\Adobe\, and in each corresponding CSXS.x folder (e.g. CSXS.9, CSXS.10, CSXS.11, etc.), create a new String Value named PlayerDebugMode and set its data to 1.

        image
    • Mac System Solution:

      • Open Terminal and run:

        for v in 6 7 8 9 10 11 12 13 14 15 16; do defaults write com.adobe.CSXS.$v PlayerDebugMode 1; done && killall -u `whoami` cfprefsd
        

        Remember to restart Illustrator after applying the settings.

  3. Open the Plugin

    • Window - Extensions, select this plugin.

      PixPin_2025-08-06_13-25-43
    • The window can be dragged to the sidebar for convenient use.

      PixPin_2025-08-06_13-26-22​

Development and release

The project uses Bolt CEP, Svelte and TypeScript. Run pnpm install, then pnpm build to check and generate a static extension that works without a dev server; the command exits after building. pnpm dev starts or reuses the HMR server, prepares the extension on first use and switches the panel to its dynamic entry. After stopping dev, run pnpm build and reopen the panel to work offline. pnpm test also builds a static entry. Frontend changes use HMR; translation JSON and host script changes reload the panel. pnpm zxp produces a static extension and signed ZXP, then automatically copies the ZXP to a byte-identical ZIP; no separate pnpm zip command is needed. Run bash gh_release.sh to build and verify ZIP/ZXP locally, then publish the matching CHANGELOG entry and Baidu/Quark cloud drive links through GitHub CLI (gh), even without working tree changes or new commits. An existing Release for the same version has its notes updated. Packages are not uploaded to GitHub Releases. Use bash gh_release.sh --no-release to build locally without publishing. See Development and release for setup and verification boundaries.

❤️ Buy me a coffee

If you find this plugin useful, you're welcome to buy me a coffee. Your support helps me maintain and improve this plugin and develop new ones.

Buy me a coffee

Explore related projects

Loading…