Gimp:Script-Fuを使用する-ガイド
Script-Fuを使用して、Gimp画像エディターでスクリプトを実行できます。 この実用的なヒントでは、GimpでScript-Fuを使用する方法を説明します。
Gimp:Script-Fuの使用方法
- Gimpでプロセスを自動化するには、スクリプトを作成して適用できます。 これを行うには、統合されたScript-Fuツールを使用します。 このツールは、Gimpの[フィルター]> [Script-Fu]にあります。
- 次に、コンソールにコマンドを入力します。 これは、上記のパスでも見つけることができます。
- Script-Fuで使用できるすべてのコマンドは、「ヘルプ」の下で開くことができる「プロシージャブラウザ」にあります。
- コンソールでは、すべてのコマンドが角括弧で囲まれています。 コメントはセミコロンで表されます。
- 単純なコマンドは、たとえば「(gimp-message“ This is GIMP!”)」です。 このコマンドは、「This is GIMP!」というテキストを含むメッセージボックスを作成します。
GimpのScript-Fuでスクリプトを使用する
Gimpでこれらのスクリプトを使用できるようにするには、追加の手順が必要です。
- Windowsエディターを開き、コンソールからエディターにコマンドを貼り付けます。
- [保存]ダイアログの[名前を付けて保存]で[すべてのファイル]オプションを選択して、このファイルを.scmファイルとして保存します。
- 次に、このファイルをGimpの「スクリプト」ディレクトリに配置します。 このディレクトリは、Gimpディレクトリの「share \ gimp \ 2.0 \ scripts」の下にあります。
- 次に、Gimpで「フィルター」>「Script-Fu」>「スクリプトの更新」をクリックして、スクリプトを使用できるようにします。
- ヒント:Gimpの「Scripts」ディレクトリには、最初に試すことができるサンプルスクリプトがあります。
次の実用的なヒントでは、初心者にとって最も重要なgimp関数をまとめました。