This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Nir Benita
Posted May 20 - Read on Facebook

I just noticed that Framer Importer/OSX has this "feature" where it adds "-2" to every layer group that has the same name.

I assume this happens because I'm actually generating two files, in the same directory, that has the same name...

Is there a way to get around this? I hope to reuse a function that takes a ('target'), and then assigns that targets children into variables.

4 Comments

Koen Bok

Yes the names have to be unique, so you can target any one of them. So I think a way to build what you want would be to target them by hierarchy/order. Like, you target the 2nd subLayer:

myLayer.subLayers[2].subLayers[1]

Nir Benita

I knew I could always count on you Koen :)

However, I feel like the solution will break if I ever make any changes to the PSD, it's a bit fragile, however, it is much quicker than what I ended up doing:

I have renamed all of the sublayer groups to include a prefix, duplicated the parent, and then used batch layer group rename (http://www.ps-bridge-scripts.talktalk.net/).

I can now pass that prefix to the function, and have it run as intended!

Cheers!

Koen Bok

Nice solution!

Nir Benita

Mind if I open an issue asking for a flag to have the importer create a folder structure when importing a PSD? :)

Read the entire post on Facebook