![見出し画像](https://assets.st-note.com/production/uploads/images/44536623/rectangle_large_type_2_cc4d8e145258b2249dfd94ecc43e1bb2.png?width=1200)
【Substance Painter/Python】すべてのTexture Setに任意のChannelを追加するスクリプト【無料配布】
SubstancePainterでのPythonスクリプト。練習がてら書いたやつを公開してみます。あんまりこういうことしたことないので大目に見てください。
バージョン2021 .1 .0 (7 .1 .0)で挙動確認済。自己責任でお願いします。
最低限の機能しかないので是非改造などして使ってください。
使い方
①:追加/削除したいチャンネルタイプを選択します。
②:追加したいチャンネルフォーマットを選択します。
③:①、②で選択したタイプ、フォーマットで全てのテクスチャセットにチャンネルを追加します。
④:①で選択したタイプのチャンネルを全てのテクスチャセットから削除します。
プラグイン導入の仕方
①プラグインフォルダに解凍したフォルダを追加
メニュー → Python → Plugins Folderから
C:\Users\(ユーザー名)\Documents\Allegorithmic\Substance Painter\python\plugins
を開き、
解凍した「add_channel_all_texture_set」のフォルダごと入れてください。
②リロードしてプラグインを実行する
.sppプロジェクトを開いたときにこのようなUIが表示されたらプラグイン導入成功です。
使用動画
#SubstancePainter の簡単なPythonプラグインを作りました。すべてのTexture Setに任意のChannelを追加することができます。/ I created a simple Python plugin for Substance Painter. It allows you to add any Channel to all Texture Set. pic.twitter.com/RkzCs6GyVv
— 森でdevサイクロプス / Cyclops developed in the forest (@moridedev) February 1, 2021