Skip to content

Commit

Permalink
Added rearrangeObjects.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-chaser-high committed Feb 22, 2024
1 parent dcc6098 commit d75cbed
Show file tree
Hide file tree
Showing 4 changed files with 1,669 additions and 5 deletions.
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ If you find a script that interests you, please download it from [![Download](ht
- [Increase Selected Anchor Points Clockwise](#increaseSelectedAnchorPointsCWjsincreaseSelectedAnchorPointsCCWjs)
- [Increase Selected Anchor Points Counterclockwise](#increaseSelectedAnchorPointsCWjsincreaseSelectedAnchorPointsCCWjs)
- [Move Guides](#moveGuidesjs)
- [Rearrange Objects](#rearrangeObjectsjs) `New`
- [Remove Color in Guide Object](#removeColorInGuideObjectjs)
- [Select Guides](#selectGuidesjs)
- [Shift Selected Anchor Points Clockwise](#shiftSelectedAnchorPointsCWjsshiftSelectedAnchorPointsCCWjs)
Expand Down Expand Up @@ -267,7 +268,7 @@ This script aligns objects horizontally and vertically at the same time.
2. Select the Distribute Objects or the Distribute Spacing.
If you don't want evenly spaced distribution, uncheck both checkboxes.
3. To include stroke width, check the Use Preview Bounds checkbox.
4. Enter a value of the Alignment Position Tolerance. (0 or higher number)
4. Enter a value of the Alignment Position Tolerance. (0 or higher number)
<img src="images/AlignObjectsSettings.png" alt="Align Objects Settings" width="50%">
5. Click the Align icon button.

Expand Down Expand Up @@ -644,7 +645,7 @@ Vertical text is also supported.
### Usage
1. Select two or more text and/or path objects, and run this script. There is no need to convert to the area types in advance.
2. Select an order of concatenation.
3. Enter a value of the alignment position tolerance. (0 or higher number)
3. Enter a value of the alignment position tolerance. (0 or higher number)
<img src="images/ThreadedTextSettings.png" alt="Threaded Text Settings" width="70%">
4. To convert the paths to the texts, check the Convert Path to Type checkbox and select either the Area Type or Type on a Path.

Expand Down Expand Up @@ -1571,6 +1572,38 @@ Illustrator CS4 or higher



# <a name="rearrangeObjectsjs">rearrangeObjects.js</a>
[![Download Path.zip](https://img.shields.io/badge/Download-Path.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Path.zip)
This script rearranges selected objects.

![Rearrange Objects](images/rearrangeObjects.png)

### Usage
1. Select any objects, and run this script.
2. Select a new layout.
3. Enter the number of objects to place in a line.
4. Enter a value of the spacing between the objects.
5. Select a current order of the objects. Check the Reverse checkbox to reverse the order.
6. To include stroke width, check the Use Preview Bounds checkbox.
7. Enter a value of the Alignment Position Tolerance. (0 or higher number)
<img src="images/AlignObjectsSettings.png" alt="Rearrange Objects Settings" width="50%">
8. Check the Preview checkbox to confirm the rearranging.

> **Note**
> The object in the top-left is the basis for rearranging.
> The units of the Spacing and the Alignment Position Tolerance depend on the ruler units.
> Compound paths, texts, linked files, and embedded link files are also supported.
### Requirements
Illustrator 2021 or higher

<div align="right">[ <a href="#path">↑ Back to Top ↑</a> ]</div>
<br>





# <a name="relinkFileExtensionjs">relinkFileExtension.js</a>
[![Download Link.zip](https://img.shields.io/badge/Download-Link.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Link.zip)
This script replaces linked files with the specified file extension, equivalent to InDesign's Links panel menu > Relink File Extension.
Expand Down
41 changes: 38 additions & 3 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ Adobe Illustratorのスクリプト集です。
- [**アンカーポイントに図形を描く**](#アンカーポイントに図形を描く) drawShapeOnAnchorPoint.js
- [**アンカーポイントの追加**](#アンカーポイントの追加) addAnchorPoints.js
- [**オブジェクトの周囲に長方形を描く**](#オブジェクトの周囲に長方形を描く) drawRectangle.js
- [**オブジェクトの整列**](#オブジェクトの整列) alignObjects.js `New`
- [**オブジェクトの並べ替え**](#オブジェクトの並べ替え) rearrangeObjects.js `New`
- [**オブジェクトをシャッフル**](#オブジェクトをシャッフル) shuffleObjects.js
- [**オブジェクトを整列**](#オブジェクトを整列) alignObjects.js `New`
- [**外接円を描く**](#外接円を描く) drawCircumscribedCircle.js
- [**ガイドオブジェクトの色を削除**](#ガイドオブジェクトの色を削除) removeColorInGuideObject.js
- [**ガイドをアートボードにフィット**](#ガイドをアートボードにフィット) fitGuideInArtboard.js
Expand Down Expand Up @@ -272,7 +273,7 @@ Illustrator CS3以降



## <a name="オブジェクトを整列">オブジェクトを整列</a>
## <a name="オブジェクトの整列">オブジェクトの整列</a>
[![Download Path.zip](https://img.shields.io/badge/Download-Path.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Path.zip)
### alignObjects.js
オブジェクトの水平方向と垂直方向を同時に整列します。
Expand All @@ -285,7 +286,7 @@ Illustrator CS3以降
2. [オブジェクトの分布]または[等間隔に分布]を選択します。
等間隔に整列したくない場合は、両方のチェックを外してください。
3. 線幅を含める場合は、[プレビュー境界を使用]にチェックを付けます。
4. [整列位置の許容誤差]の値を入力します。(0以上の数値)
4. [整列位置の許容誤差]の値を入力します。(0以上の数値)
<img src="images/AlignObjectsSettings.png" alt="Align Objects Settings" width="50%">
5. 整列アイコンボタンをクリックします。

Expand Down Expand Up @@ -1661,6 +1662,40 @@ Illustrator CS4以降



## <a name="オブジェクトの並べ替え">オブジェクトの並べ替え</a>
[![Download Path.zip](https://img.shields.io/badge/Download-Path.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Path.zip)
### rearrangeObjects.js
選択しているオブジェクトを並べ替えます。

![Rearrange Objects](images/rearrangeObjects.png)
> **Note** Illustrator日本語版を使用している場合は、UIは日本語で表示します。
#### 使用方法
1. オブジェクトを選択してスクリプトを実行します。
2. レイアウトを選択します。
3. 1列に並べるオブジェクトの個数を[横列数]または[縦列数]に入力します。
4. 並べるオブジェクトの間隔を[間隔]に入力します。
5. オブジェクトの現在の並び順を選択します。並び順を逆にするには、[逆順]にチェックを付けます。
6. 線幅を含める場合は、[プレビュー境界を使用]にチェックを付けます。
7. [整列位置の許容誤差]の値を入力します。(0以上の数値)
<img src="images/AlignObjectsSettings.png" alt="Rearrange Objects Settings" width="50%">
8. レイアウトを確認するには、[プレビュー]にチェックを付けます。

> **Note**
> 左上のオブジェクトが並べ替えの基準になります。
> [間隔]と[整列位置の許容誤差]の単位は、ルーラー単位により変わります。
> 複合パス、テキスト、リンク画像、埋め込み画像にも対応しています。
#### 動作条件
Illustrator 2021以降

<div align="right">[ <a href="#パス">↑ トップへ戻る ↑</a> ]</div>
<br>





## <a name="ファイル拡張子にリンクを再設定">ファイル拡張子にリンクを再設定</a>
[![Download Link.zip](https://img.shields.io/badge/Download-Link.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Link.zip)
### relinkFileExtension.js
Expand Down
Binary file added images/rearrangeObjects.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d75cbed

Please sign in to comment.