Photoshop Scripting
Unity Standard Shader
Below is a code example automating Photoshop to:
-
Create layer sets named according to the Unity Standard Shader map names.
-
Save these layers sets as PNG files with automatic naming conventions appended.
For things like the Metallic map which stores the Smoothness in the alpha channel, there are separate layer sets for Metallic and Metallic Smoothness. This allows artists to easily paint in each set without having to switch over to an Alpha channel.
When saving, the Smoothness set is auto copied into the Alpha channel, and a 32-bit Metallic TGA is saved. This is then reversed to allow artists to continue working normally.
The full project including the HTML / JS code and Eclipse project can be found in my art pipeline git repo:
https://github.com/bradley-newman/ArtPipeline/tree/master/PhotoshopTools