Quantcast
Channel: Adobe Community : All Content - Adobe Creative Cloud
Viewing all articles
Browse latest Browse all 69432

Export Layers To Files - Renaming Script PS CC

$
0
0

On all previous versions of Photoshop, including CS6 (before the recent update to PS CC), I was able to use the ExtendScript Toolkit to edit the PS preset script that adds naming/numbering sequences to files when running the "Export Layers to Files" script. For PS CS 6, I edited the script to remove the automatic naming/numbering of exported layers by editing the following in ExtendScript Toolkit:

 

In ExtendScript Toolkit CS6 open the Export Layers to Files.jsx (applications/adobe photoshop cs6/presets/scripts/export layers to files.jsx)

on line 1030:

change:

fileNameBody += "_" + zeroSuppress(i, 4);

to:

//fileNameBody += "_" + zeroSuppress(i, 4);

 

on line 1031:

change:

fileNameBody += "_" + layerName;

to:

fileNameBody += "" + layerName;

 

 

This solved my problem and allowed PS to export my layers to files, keeping the layer name as the filename without adding any naming or numbering sequences to the filename. However with the recent release of Photoshop CC, the script change above does not work. It looks as though there are some new lines of scripting with Photoshop CC and I would love to know what else I need to change to prevent PS CC from renaming files when using the Export Layers to File script. Without the ability to change this, I will have to go through numerous steps in bath rename in Bridge, which when working with 100's of files with different naming structures would totally slow down my workflow. Any ideas on what to update in the Photoshop CC Script to fix this? Thanks so very much!


Viewing all articles
Browse latest Browse all 69432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>