Skip to main content
Tilles
Inspiring
January 27, 2021
Resuelto

Anyway to have variable names while exporting layers?

  • January 27, 2021
  • 2 respuestas
  • 539 visualizaciones

hi guys,
I know that you can export assets using naming conventions, like "jpg50%", "default", etc.
I'm looking for exporting layers or groups, with some variable strings, like "filename" or "size".
Like, naming the layer something like "[filename]_banner1", you can export that layer with this naming pattern. Or "banner1_[size]"... 
Any ideias?

Este tema ha sido cerrado para respuestas.
Mejor respuesta de Myra Ferguson

The type of naming with the sizing you mention are ways to export layers and/or groups using Generator. Here's more info on generating images and naming files with Generator.

 

If you use File > Export > Export Layers to Files, you can set a File Name Prefix.

 

If you wanted to export multiple layers or a group like the Export Layers to Files method, you could turn on the visibility of the desired layers or groups and save them as layer comps. Then you could use File > Export > Export Layers Comps to Files... and set the File Name Prefix.

 

 

2 respuestas

Stephen Marsh
Community Expert
Community Expert
January 28, 2021

In addition to the options mentioned by Myra, there are also scripts that can change layer names.

Myra Ferguson
Community Expert
Myra FergusonCommunity ExpertRespuesta
Community Expert
January 28, 2021

The type of naming with the sizing you mention are ways to export layers and/or groups using Generator. Here's more info on generating images and naming files with Generator.

 

If you use File > Export > Export Layers to Files, you can set a File Name Prefix.

 

If you wanted to export multiple layers or a group like the Export Layers to Files method, you could turn on the visibility of the desired layers or groups and save them as layer comps. Then you could use File > Export > Export Layers Comps to Files... and set the File Name Prefix.

 

 

Tilles
TillesAutor
Inspiring
January 28, 2021

great! thank you, I'll try layer comps.