A repo for any photoshop scripts
The .jsx files are NOT the modern jsx, it is an extension that photoshop has been using for quite some time.
Photoshop scripting docs
This script goes through and chooses 1 layer from a folder called "clothing options" forEach "clothing options" and forEach "fabric swatches" check if there is a matching trim in "trim masks". If so, iterate over each of the "trim colors" and output a png. If not, just output a png with the clothing option and fabric
I started from these scripts and utilized a lot of what they were doing. Thank you very much for your help