Hook: Photoshop Mattepainting’s layer publish

Hook made for publishing Photoshop Mattepainting’s layers as an EXR files into the shotgun publishing area.

First of all the scan hook will validate the scene to be saved, start with the photoshop active document and try to find a group named as adjustments then get the layers containded in that layer group.

In the pre publish process will scan for blank names to avoid them.

Found duplicitys in layer names

As the final Publishing process, the hook need to perform some file format conversion for every texture map found to a temporal tiff file an then, selected as only viwews layer export it as EXR format.