Skip to content

shspage/SHFXRegularPolygon_aip

Repository files navigation

SHFXRegularPolygon.aip

readme in japanese

SHFXRegularPolygon.aip is a plug-in for Adobe Illustrator 2025 (mac/win).

Adds an effect that converts the selected path to a regular polygon.

Although simple in function, this repo is actually an example of creating a LiveEffect plug-in configuration dialog using Dear ImGui .

How To Use

image
video - https://twitter.com/shspage/status/1256437710778036224

(The dialog in the video is from the initial version.)

Items in the Settings Window

  • scale(%) : Sets the zoom in/out ratio in percentages. (lower limit is 0.1)
  • angle : Sets the rotation angle.
  • vertices : Sets the number of vertices. (lower limit is 3)

Working Environment

Adobe Illustrator 2025 (macOS (Apple Silicon) / Windows)

Development Environment

Adobe Illustrator 2025 SDK
Xcode 14.2 / macOS 13.1 sdk / MacOS Ventura
MacBook Air (M1)

Visual Studio 2022 / Windows11

Build

Mac

Open myImGuiDialog_mac/myImGuiDialog.xcodeproj and build libmyImGuiDialog.a first. Then open SHFXRegularPolygon.xcodeproj and build SHFXRegularPolygon.aip

Windows

Open SHFXRegularPolygon.sln and build solution.
Projects will be built in the order of myImGuiDailog_win and SHFXRegularPolygon .

Note For Build

  • Place "SHFXRegularPolygon_aip" folder directly under Illustrator SDK's samplecode folder.
  • (Windows) To build with the attached project file, it is necessary to convert the character code of the source code (.cpp, .h, .hpp) from UTF-8 to Multibyte(cp932).
  • The python names and paths in Build Phases/Run Script(mac) and Build Events(win) are from my environment, so please change them accordingly. (Starting with Illustrator SDK 2025, the version of python used in the build is 3.11.)

Installation

(After build) Place SHFXRegularPolygon.aip in the Adobe Illustrator plugin folder or additional plugin folder.

The next time Illustrator runs, the plugin will be loaded and "StayHomeFX" will be added to the "Effects" menu.

After selecting a path, select "Regular Polygon -SHFX" from the submenu to show the effect setting window.

Note: "StayHomeFX" is a temporary name, and will be changed to another one at a later date. The abbreviation SHFX remains the same.

License

MIT License
Copyright (c) 2020 Hiroyuki Sato
https://github.com/shspage
See LICENSE.txt for details.

This software depends on the following resources which may have the licenses differs from this software.

About

a Live Effect plug-in for Adobe Illustrator using SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors