Skip to content

xuanheScript/illustrator-quote-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Illustrator Annotation Plugin (CEP 12)

A professional Adobe Illustrator material annotation plugin with CEP 12 support for Illustrator 2025+

License: MIT CEP Version Illustrator Node.js

Features β€’ Plugin Preview β€’ Installation β€’ Usage β€’ Development β€’ Troubleshooting

δΈ­ζ–‡ζ–‡ζ‘£ (Chinese Documentation)

🎯 Features

🎨 Material Management System

  • πŸ“¦ Manageable Material Library - Add, edit, delete custom materials with unit management
  • πŸ’Ύ Local Storage - Persistent material data storage
  • 🏷️ Multi-selection Support - Select multiple materials simultaneously for annotation
  • πŸ“‹ Preset Materials - Built-in common material data

πŸ”§ Annotation Features

  • πŸ“ Auto-calculation - Automatically calculate dimensions and area based on object bounding box
  • 🏷️ Smart Annotation - Automatically add material information and leader lines next to objects
  • πŸ“Š Data Export - One-click export to CSV format including width and height information
  • 🎯 Multi-object Support - Batch processing of multiple selected objects
  • πŸ“ Unit Management - Set default units for each material with personalized value input

πŸš€ Technical Features

  • CEP 12 - Support for the latest Adobe Illustrator 2025+
  • Chromium 99 - Modern web standards support
  • React + TypeScript - Modern frontend technology stack
  • ExtendScript - Deep integration with Illustrator API

πŸ“¦ Preset Materials

Material Type Color ID Description
Acrylic πŸ”΄ High transparency, suitable for display
PVC 🟒 Low cost, suitable for large area use
Fleece 🟠 Good texture, suitable for premium applications
Stainless Steel πŸ”΄ Premium texture, corrosion resistant
Wood-plastic 🟣 Natural texture, eco-friendly material

πŸ’‘ Tip: All materials can be customized through the material management function, and default units can be set

πŸ“Έ Plugin Preview

Main Interface

Plugin Main Interface

Main interface showing material selection, unit settings and application functions

Material Management

Material Management Interface

Material management interface supports adding, editing and deleting materials, setting default units and colors

Actual Application Effect

Application Effect Example

Actual application effect in Illustrator, showing multi-material annotation and dimension information

πŸ› οΈ System Requirements

Required Versions

  • Adobe Illustrator 2025 (Version 29.0) or higher
  • CEP 12 support
  • Node.js 17.7.1 or higher (for development environment)

Operating Systems

  • Windows 10/11 or higher
  • macOS 10.15 or higher

πŸš€ Installation Guide

Version Selection Guide

Please choose the corresponding plugin version based on your Illustrator version:

Illustrator Version CEP Version Plugin Version Branch Recommendation
2025+ CEP 12 v2.x.x main βœ… Latest Version
2021-2024 CEP 10 v1.5.x cep10-support 🟑 Stable Compatible

Method 1: ZXP File Installation (Recommended)

Step 1: Install Tool

Download one of the following installation tools:

Step 2: Install Plugin

  1. Download the latest illustrator-annotation-plugin-v2.0.0.zxp file
  2. Open the installation tool
  3. Drag the .zxp file to the tool window
  4. Click install

πŸ“„ For detailed installation instructions, please see INSTALLATION.md

Method 2: Development Environment Installation

# Clone project
git clone https://github.com/yourusername/illustrator-annotation-plugin.git
cd illustrator-annotation-plugin

# Install dependencies
npm install

# Build and install to development environment
npm run install-debug

Manual Installation

  1. Build Plugin

    # Install dependencies
    yarn install
    
    # Build plugin
    yarn build:cep
  2. Enable Debug Mode

    Windows (Registry):

    HKEY_CURRENT_USER\Software\Adobe\CSXS.12
    Create string value: PlayerDebugMode = 1
    

    macOS (Terminal):

    defaults write com.adobe.CSXS.12 PlayerDebugMode 1
  3. Copy Plugin Files

    Copy the dist folder to the CEP extension directory:

    Windows:

    C:\Users\[Username]\AppData\Roaming\Adobe\CEP\extensions\illustrator-annotation-plugin
    

    macOS:

    ~/Library/Application Support/Adobe/CEP/extensions/illustrator-annotation-plugin
    

πŸ“– Usage Guide

1. Launch Plugin

  1. Open Adobe Illustrator 2025+
  2. Menu bar β†’ Window β†’ Extensions β†’ Illustrator Quote
  3. Plugin panel will appear on the right side

2. Material Management

Click to expand material management tutorial

Add New Material

  1. Click the "Manage Materials" button
  2. Enter material name, default unit, and color
  3. Click "Add Material" button

Edit Material

  1. Click the "Edit" button for a material in the material list
  2. Modify material name, unit, or color
  3. Click "Save Changes" button

Delete Material

  1. Click the "Delete" button for a material in the material list
  2. Confirm the deletion operation

⚠️ Note: The system keeps at least one material; you cannot delete the last material

3. Apply Material Annotation

Click to expand annotation operation tutorial

Basic Operations

  1. Select the objects to annotate in Illustrator
  2. Select one or more material types in the plugin panel
  3. Set values for materials with units (optional)
  4. Click "Apply Material" button
  5. Select annotation position

Multi-material Annotation

  1. Select multiple materials (click material cards to select/deselect)
  2. Set values for each material individually
  3. After application, it will display like: "12 cm Acrylic + 5 mm PVC"

Export Annotation Data

  1. Complete material application for all objects
  2. Click "Export Annotation" button
  3. CSV file will be automatically saved to desktop

Export content includes:

  • Layer name
  • Material information (with values and units)
  • Width (mm)
  • Height (mm)
  • Area (mΒ²)

4. Debug Features

  • Check "Show debug information" to view detailed operation process
  • Click "Debug Test" button to check plugin status
  • View debug information to confirm system is working properly

πŸ”§ Development Guide

Technology Stack

  • Frontend: React 19 + TypeScript + Vite
  • CEP: CEP 12 + ExtendScript
  • Build: Yarn + ESLint

Development Environment Setup

# Clone project
git clone https://github.com/yourusername/illustrator-annotation-plugin.git
cd illustrator-annotation-plugin

# Install dependencies
yarn install

# Development mode
yarn dev

# Build CEP plugin
yarn build:cep

# Code linting
yarn lint

# Create release package
yarn release

Project Structure

illustrator-annotation-plugin/
β”œβ”€β”€ src/                    # React source code
β”‚   β”œβ”€β”€ App.tsx            # Main application component
β”‚   β”œβ”€β”€ App.css            # Style files
β”‚   └── main.tsx           # Entry file
β”œβ”€β”€ jsx/                   # ExtendScript files
β”‚   β”œβ”€β”€ applyMaterial.jsx  # Material application script
β”‚   └── exportQuote.jsx    # Quote export script
β”œβ”€β”€ CSXS/                  # CEP configuration
β”‚   └── manifest.xml       # Plugin manifest
β”œβ”€β”€ lib/                   # CEP library files
β”‚   └── CSInterface.js     # CEP interface
β”œβ”€β”€ scripts/               # Build scripts
β”‚   β”œβ”€β”€ create-zxp.js      # ZXP packaging script
β”‚   └── install-debug.js   # Development installation script
β”œβ”€β”€ dist/                  # Build output
β”œβ”€β”€ release/               # Release files
└── docs/                  # Documentation

Release Process

  1. Build Plugin: yarn build:cep
  2. Create ZXP: yarn create-zxp
  3. Test Installation: Test with generated ZXP file
  4. Release: Upload ZXP file and installation instructions

πŸ” Troubleshooting

Common Issues

Plugin displays white screen

Solutions:

  1. Confirm using Illustrator 2025+ version
  2. Check if CEP 12 debug mode is enabled
  3. Check browser console for error information
  4. Verify plugin file integrity
Plugin not showing in menu

Solutions:

  1. Check if plugin is correctly installed to CEP extension directory
  2. Confirm manifest.xml version configuration is correct
  3. Restart Illustrator application
  4. Check CEP debug mode settings
Material application fails

Solutions:

  1. Confirm objects are selected
  2. Check if objects support bounding box calculation
  3. Check error information in debug messages
  4. Try using "Debug Test" function

Debug Mode Setup

Windows:

reg add "HKEY_CURRENT_USER\Software\Adobe\CSXS.12" /v PlayerDebugMode /t REG_SZ /d 1 /f

macOS:

defaults write com.adobe.CSXS.12 PlayerDebugMode 1

πŸ“„ License

This project is open source under the MIT License - see the LICENSE file for details.

🀝 Acknowledgments

πŸ“ž Support & Feedback


If this project helps you, please give it a ⭐️

Made with ❀️ by Illustrator Annotation Plugin Team