Substance Painter is a amazing, there is an issue that is yet to be addressed and that is merging texture sets, submerger
helps solve that. Although not a substance painter plugin, it is used in conjunction with the Export to Photoshop
plugin, already available in Substance Painter 2018 +, to help automate the process of merging textures.
- download or copy
submerger.jsx
fromdist\submerger.jsx
- export materials sets to photoshop using the
Export to Photoshop
plugin. choose materials you need. - In photoshop, navigate to
File > Scripts > Browse
and select thesubmerger.jsx
file - Thats it! 😃 navigate to your Substance Photoshop exports folder to find your merged materials.
Note: you can avoid navigating to the folder everytime by adding the scripts to your File > Scripts
menu
MacOS: /Applications/Adobe Photoshop [VERSION]/Presets/Scripts/
Windows: C:/Program Files/Adobe/Adobe Photoshop [VERSION]/Presets/Scripts/
This is just a utility I created to automate the map merging process not necessarily a full solution.
- Single mesh with 2 or more sub-objects or texture set
passed v1.0.0
- Exporting identical maps for both sets
passed v1.0.0
- Exporting non-identical maps (i.e basecolor & normal for set1 and only normal for set2)
passed v1.0.0
- Exporting all map sets
passed v1.0.0
- Some map names such as
04 default
-failed v1.0.0
since the regEx does not account for the spacing, will be fixed in a future update.
- Clone the repo
- Run
npm install
to install dependencies - Make changes to the
src/submerger.jsx
- Run code analysis
npm run test
- Build code
npm run build
- Test in photoshop using
dist/submerger.jsx
Find bugs? feel free to message me or create an issue
Want to fix it yourself? Create a pull request