Saving Targa Files for iRacing from Photoshop

Its rather unfortunate that Photoshop makes it cumbersome to save targa (TGA) files. The following scripts solve this multi-input operation with a single click.

Template Setup

The scripts assume that your livery development folder structure and naming matches the iRacing paint folder structure and naming for each car.

  • On the left you can see that my Skip Barber livery is located in a folder called rt2000.
  • One the right you can see that iRacing expects the livery to be in a folder called rt2000 inside the paint folder.
  • Each template file needs to renamed to car_custid.psd, where cust_id is your iRacing Customer Number.

Personally, when I download the template zip the first time I unzip it and this becomes my development folder for that car. I then drag the zip file into it so I have an original to restore to if required. Inside this car development folder is where I create a ‘live’ folder matching the iRacing paint folder as shown below. Inside the live folder will be a copy of the template.psd called car_123456.psd if 123456 was my CustID.

In summary, my workflow is as follows:

  1. Download the template zip folder
  2. Unzip it
  3. Drag the zip archive into the unzipped copy (thus keeping an original)
  4. Create a folder that matches the iRacing Paint Folder name (see table below)
  5. Drag the template.psd into the folder created in the step above.
  6. Rename template.psd with my cust_id
iRacing/PaintMyLiveries
rt20001_template_SBRS/rt2000
specracer23_template_SRF/specracer
mx5 mx5201667_template_MX16/mx5 mx52016
dallarap217128_template_P217/dallarap217
ministock191_template_MNSTK/ministock

Its worth noting that some ‘identical’ templates have two or more source cars. You need to pick your primary car and then copy and paste for the alternate versions.

Installing the Scripts

I cannot take any credit for these scripts. I reached out to the adobe community and was lucky that Stephen was so super helpful. You can see our chat on Scripts for Saving Targa (TGA) files to a known folder location. I have since made some mods so they work better and will deal with spec files.

Download the scripts from GitHub.

Unzip the download file above and assuming you are working in Windows the scripts need to be copied into your C:\Program Files\Adobe\<Your Photoshop Version>\Presets\Scripts folder.

For more information and other platforms refer to Downloading and Installing Adobe Scripts.

Update your file path

The default location for your iRacing Paints folder will be on the C Drive but often people will move it to another location because of storage. The default iRacing file path is: C:\Documents\iRacing\paint. The scripts are set up to use D:\Documents\iRacing\paint because my Documents folder is on a different drive.

You can update line 16/17 in both scripts to your paint folder location.

Using the scripts

Once the scripts are installed you will be able to access them via File > Scripts in photoshop.

Heads Up: Occasionally you will get a file write error. This seems to occur because iRacing has locked the file. Switching to the iracing window and moving the car seems to clear the error and then you will be able to run the script again.

2 Comments on “Saving Targa Files for iRacing from Photoshop”

  1. Script is saving file to my External D:\ drive. I’ve attempted to adjust the file location in the script but it just breaks things. When I open the scrips the file path is set to D:\? Aren’t most peoples documents drive on C:\?

    • Sorry for the slow response. Really depends on the setup. I’ll see if I can sort something better out.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.