Skip to main content
Participant
August 13, 2019
Question

asset export - can the asset name pickup the layer's name automatically ?

  • August 13, 2019
  • 6 replies
  • 5605 views

Hi all,

i've spend quite some time to name my layers with good, make-sense names and when I try to export Illustrator call them 'asset 1', asset 2', etc.. !

I know i can rename them but it's really annoying and time consuming as I have hundred of assets to export !!

can it pick up the name of the top layer automatically ?

thanks !

6 replies

CarlosCanto
Community Expert
Community Expert
November 13, 2020

awesome, thanks for posting your solution

CarlosCanto
Community Expert
Community Expert
November 12, 2020

renaming the Assets already in the Assets panel is not possible, but naming Assets that we add to the Assets panel is doable via scripting. 

 

Can you share screen shots of your layers expanded and explain where the Asset names should come from?

some users often refer to objects as layers (not you, in general).

Participant
November 12, 2020

Hello Carlos,

Thanks for the quick response 🙂

 

I solved this problem last night. Now I will try to describe the solution:
Yes, I thought the assets take their names from the layer names. But I was wrong. Since assets take names from the names of objects (groups). Since my groups had no names, the assets were named aaset1, asset2, etc. To solve this problem, I simply created a new layer and dragged all the named layers into it. Thus, when creating assets, they were named as I wanted.

Hooray!

Good luck to all! Hope this will be helpful.

Participant
June 24, 2022

Fantastic fix – many thanks!

Participant
November 11, 2020

Hi Andrew,

I have exactly the same problem. I am trying to find a way to save files with layer names. This tool (Asset Export) works perfectly, but renaming is a pain 😞 Did you find a solution? If not, I'm serious about learning about scripting just to create a script to solve this problem.

Best regards,

Voysla.

Monika Gause
Community Expert
Community Expert
May 6, 2020

Try the layer exporter script: https://gist.github.com/TomByrne/7816376

Participating Frequently
May 6, 2020

Yes, this is VERY annoying trait of the poorly implemented Asset Export 'feature' that barely works and is never updated. 

 

You CAN get the layer name - but NOT in any of the ways you'd expect. You have to select the layer and click the export layer button at the bottom of the layer palettle. Hope that helps. 

 

(You may notice however, that if your layers are nested more than one deep, your exports may be broken and add tons of space and random things to it. Very broken.) 

canyonviewchurch
Participating Frequently
March 16, 2021

Thank you!!!

Srishti Bali
Community Manager
Community Manager
August 14, 2019

Hi Andrew,

Thanks for reaching out. I understand that you are trying to export assets with layer names. This might be possible through scripting. I am moving this discussion to Illustrator Scripting​ forum so that you can get some more responses from our scripting experts.

Regards,

Srishti