【PS script】選択範囲にフィット( Fit to selection)
- FreeDigital0 JPY
- 助六おごってくださる方(中身はFreeと一緒です)Digital350 JPY

※Photoshop CC2025 (Windws10)で検証済み ◆機能概要 ・選択範囲に、選択したレイヤーを拡縮してフィットさせます。 ・範囲選択がない場合、ドキュメント全体に対してレイヤーを拡縮してフィットさせます。 ◆使い方 ・範囲選択をした後、レイヤーを選択してください(複数選択可)。 ・スクリプトを実行してください。 ・ボタン1 選択範囲にフィットさせます ・ボタン2 アスペクト比を維持したまま、横方向にフィットさせます。 ・ボタン3 アスペクト比を維持したまま、縦方向にフィットさせます。 ・ボタン4 横方向のみにフィットさせます。 ・ボタン5 縦方向のみにフィットさせます。 ◆スクリプトのインストール方法 ・Photoshopが起動していない状態で、スクリプトと画像を以下のフォルダにコピーしてください Windows:C:\Program Files\Adobe\Adobe Photoshop XX\Presets\Scripts\ Mac:/Applications/Adobe Photoshop XX/Presets/Scripts/ ※Photoshopのバージョンや、インストール先に合わせてください ・Photoshopを起動してください ・「ファイル > スクリプト > 」内に該当のスクリプトが表示されます ・クリックするとスクリプトが実行されます ◆免責事項 ・本スクリプトを第三者に無断で転送・販売・配布することを禁止します ・このスクリプトによる不具合や損害について責任を負いかねます /////////////////////////////////////////////////////////////////////////////////////////// *Verified with Photoshop CC2025 (Windows 10) Feature Overview ・The selected layer will be scaled to fit the selection area. ・If there is no selection, fit the layer to the entire canvas by scaling it. How to Use ・After making a selection, choose the layer(s) (multiple selections are allowed). ・Run the script. ・Button 1 Scales the layer to fit the selection area. ・Button 2 Scales the layer horizontally while maintaining the aspect ratio. ・Button 3 Scales the layer vertically while maintaining the aspect ratio. ・Button 4 Scales the layer to fit only horizontally. ・Button 5 Scales the layer to fit only vertically. How to Install the Script ・With Photoshop closed, copy the script and image 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.