Photoshop Script to Update a File based on CSV
Hi everyone,
I want to create an image based on two things; parameters saved on a CSV file and another image called "logo.jpg" (already saved together with the CSV file). The CSV file will contain 3 parameters:
Value 1) Sample - a String with a filename (for example, "Sample 1")
Value 2) BG Color - a String with a hex color (for example, "#323232")
Value 3) School Name - a simple String (for example, "High School Name Sample")
The script should do the following:
Step 1) Based on Value 1, open the existing Photoshop file with that name (we will have a PSD file per possible option in Value 1). If Value 1 is empty, it opens a "default.psd".
Step 2) Based on Value 2, change the color of the layer called "Background" in the Photoshop file opened on Step 1.
Step 3) If School Name is NOT empty, change the text value of the layer called "School Name" to match this.
Step 4) Place the image called "logo.jpg" inside this PSD as the farthest layer to the back (only the layer "Background" stays behind it).
Step 5) The image on Step 4 should be (1) aligned to the center of the canvas (vertically and horizontally), (2) take the full height of the canvas (1080 pixels), and (3) have the opacity set to 10%.
Step 6) Save file as a JPG with name matching the one on Value 1.
Thanks a lot for the help!
