「GIMPの全レイヤー情報をテキストで保存するスクリプト」の編集履歴(バックアップ)一覧はこちら

GIMPの全レイヤー情報をテキストで保存するスクリプト - (2012/08/08 (水) 08:20:56) の1つ前との変更点

追加された行は緑色になります。

削除された行は赤色になります。

最終更新 : 2012/08/07 #contents(,option=word) **動作確認環境 - Windows7 x64 - GIMP 2.8.0 Portable - GIMP 2.6.11 - Python 2.6.6 - Python 2.7.2 - ※ Python-fuが動作する環境が必要。 **概要 GIMP上の全レイヤーについて、左上座標、幅、高さの情報を、テキストファイルに保存します。 ***出力結果の例 text形式 TEXT LAYER,32,32,371,95 レイヤー #2-with-dropshadow,64,64,160,222 レイヤー #1-with-dropshadow,128,128,179,190 レイヤー,256,256,147,128 背景,0,0,512,512 xml形式 <?xml version="1.0" encoding="UTF-8"?> <TextureAtlas imagePath="test.xcf"> <SubTexture name="TEXT LAYER" x="32" y="32" width="371" height="95"/> <SubTexture name="レイヤー #2-with-dropshadow" x="64" y="64" width="160" height="222"/> <SubTexture name="レイヤー #1-with-dropshadow" x="128" y="128" width="179" height="190"/> <SubTexture name="レイヤー" x="256" y="256" width="147" height="128"/> <SubTexture name="背景" x="0" y="0" width="512" height="512"/> </TextureAtlas> **ダイアログのスクリーンショット #image(m256_layers_offsets_dump_0.0.1.png,title=ダイアログのスクリーンショット) **スクリプト [[m256_layers_offsets_dump_0.0.1.py.txt>http://www34.atwiki.jp/mieki256/pub/m256_layers_offsets_dump_0.0.1.py.txt]] [[(ソースコード表示)>m256_layers_offsets_dump_0.0.1.py.txt]] **導入方法 + m256_layers_offsets_dump_0.0.1.py.txtをダウンロード。 + ~.py.txt を ~.py にリネーム。 + 所定のフォルダ(ユーザフォルダ\.gimp-2.x\plug-ins\ 等)にコピーする。 **使い方 - レイヤー → 全レイヤー情報をダンプ、で呼び出す。 - 保存ディレクトリと保存ファイル名を指定して、text形式かxml形式を選んで実行。 **その他 - text形式はカンマ区切り。 - GIMP 2.6 と GIMP 2.8 の両方で動作確認済み。 - GIMP 2.8以降、レイヤーグループがあった場合は、レイヤーグループ内の子レイヤーも対象として処理をする。レイヤーグループ自体は無視する。 - 複製、改変、再配布はご自由に。
最終更新 : 2012/08/07 #contents(,option=word) **動作確認環境 - Windows7 x64 - GIMP 2.8.0 Portable - GIMP 2.6.11 - Python 2.6.6 - Python 2.7.2 - ※ Python-fuが動作する環境が必要。 **概要 GIMP上の全レイヤーについて、左上座標、幅、高さの情報を、テキストファイルに保存します。 - GIMP 2.6 と GIMP 2.8 の両方で動作確認済み。 - GIMP 2.8上では、レイヤーグループ内の子レイヤーも対象として処理をする。 - text形式はカンマ区切り。 - 複製、改変、再配布はご自由に。 ***出力結果の例 text形式 TEXT LAYER,32,32,371,95 レイヤー #2-with-dropshadow,64,64,160,222 レイヤー #1-with-dropshadow,128,128,179,190 レイヤー,256,256,147,128 背景,0,0,512,512 xml形式 <?xml version="1.0" encoding="UTF-8"?> <TextureAtlas imagePath="test.xcf"> <SubTexture name="TEXT LAYER" x="32" y="32" width="371" height="95"/> <SubTexture name="レイヤー #2-with-dropshadow" x="64" y="64" width="160" height="222"/> <SubTexture name="レイヤー #1-with-dropshadow" x="128" y="128" width="179" height="190"/> <SubTexture name="レイヤー" x="256" y="256" width="147" height="128"/> <SubTexture name="背景" x="0" y="0" width="512" height="512"/> </TextureAtlas> **スクリプト [[m256_layers_offsets_dump_0.0.1.py.txt>http://www34.atwiki.jp/mieki256/pub/m256_layers_offsets_dump_0.0.1.py.txt]] [[(ソースコード表示)>m256_layers_offsets_dump_0.0.1.py.txt]] **導入方法 + m256_layers_offsets_dump_0.0.1.py.txtをダウンロード。 + ~.py.txt を ~.py にリネーム。 + 所定のフォルダ(ユーザフォルダ\.gimp-2.x\plug-ins\ 等)にコピーする。 **使い方 - レイヤー → 全レイヤー情報をダンプ、で呼び出す。 - 保存ディレクトリと保存ファイル名を指定して、text形式かxml形式を選んで実行。 **ダイアログのスクリーンショット #image(m256_layers_offsets_dump_0.0.1.png,title=ダイアログのスクリーンショット)

表示オプション

横に並べて表示:
変化行の前後のみ表示: