【PS script】レイヤー→スプライトシート(Layers→SpriteSheet)
- Digital350 JPY

※Photoshop CC2025 (Windws10)で検証済み ◆機能概要 ・レイヤーからスプライトシートを自動で作成します ・指定の数だけ横方向にキャンバスサイズで並べて作成します ・どの種類のレイヤーでも動作します(※) ※以下に該当する場合正常に動作しない可能性がございますのでご注意ください レイヤー間リンクが適用されている レイヤーのマスクのリンクが解除の状態になっている レイヤーにロックがかかっている アートボードを使用している ・下のレイヤーから順番に並べることもできます ・レイヤーを統合しないため、リンクされたスマートオブジェクトなどにも対応できます。 (後からの編集が可能です) ◆使い方 ・スプライトシートを作成したいドキュメントファイルを開いてください ※サンプルファイルを同梱しましたので、まずはそちらでお試しください ・スクリプトを実行してください ・横に何枚並べるか入力してください ※レイヤーの下から並べたい場合は、チェックを入れてください ・OKボタンを押してください ◆スクリプトのインストール方法 ・Photoshopが起動していない状態で、スクリプトを以下のフォルダにコピーしてください Windows:C:\Program Files\Adobe\Adobe Photoshop XX\Presets\Scripts\ Mac:/Applications/Adobe Photoshop XX/Presets/Scripts/ ※Photoshopのバージョンや、インストール先に合わせてください ・Photoshopを起動してください ・「ファイル > スクリプト > 」内に該当のスクリプトが表示されます ・クリックするとスクリプトが実行されます ◆免責事項 ・本スクリプトを第三者に無断で転送・販売・配布することを禁止します ・このスクリプトによる不具合や損害について責任を負いかねます ◆ライセンスについて ・本スクリプトはPC1台につき1ライセンスです ・複数のPCでご利用の場合は台数分のライセンスをご購入ください ◆履歴 2024/12/24 ・初出 /////////////////////////////////////////////////////////////////////////////////////////// *Verified with Photoshop CC2025 (Windows 10) Feature Overview ・Automatically creates a sprite sheet from layers. ・Arranges the layers horizontally in the canvas size, based on the specified number. ・Layers can also be arranged in order from the bottom layer upwards. ・Works with all types of layers (*). *Please note that the script may not work properly under the following conditions. Layer linking is applied. Layer mask linking is disabled. The layer is locked. Artboards are in use. ・Since layers are not merged, it can also support linked smart objects and others. (Editing is possible later) How to Use ・Open the document file for which you want to create a sprite sheet. *A sample file is included, so please try it with that first. ・Run the script. ・Enter the number of layers to arrange horizontally. *If you want to arrange the layers from the bottom up, check the box. ・Press the "OK" button. How to Install the Script ・With Photoshop closed, copy the script to the following folder: Windows: C:\Program Files\Adobe\Adobe Photoshop XX\Presets\Scripts\ Mac: /Applications/Adobe Photoshop XX/Presets/Scripts/ *Make sure to adjust according to your Photoshop version and installation path. ・Launch Photoshop. ・The script will appear under "File > Scripts >" in the menu. ・Click on the script to execute it. Disclaimer ・Redistribution, sale, or distribution of this script to third parties without permission is prohibited. ・We are not responsible for any issues or damages caused by using this script. License Information ・This script is licensed for use on one PC only. ・If you wish to use it on multiple PCs, you must purchase a license for each additional computer.