top of page

Photoshop Scripting
Unity Standard Shader

PS-Unity-Banner.jpg

Below is a code example automating Photoshop to:

  1. Create layer sets named according to the Unity Standard Shader map names.

  2. 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.

LayerSets.png

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.

MetallicTGA.png

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

bottom of page